Giter VIP home page Giter VIP logo

js.utils's Introduction

js.utils (js通用函数)

调用方式

npm install crypto-js
import { ... } from '*/js.ext'

函数/方法

方法名 用途 说明
deepCopy 对象深拷贝 使用JSON解译方式
guid 获取GUID字符串
getRootPath 获取当前页面的根地址
randomRange 获取指定范围随机数
enCrypto 字符串加密
deCrypto 字符串解密算法
setCryptoConfig Crypto加密解密配置
setCookie 设置cookie
delCookie 删除cookie
getCookie 获取cookie
setLocalStorage 设置localStorage
getLocalStorage 获取localStorage
delLocalStorage 删除localStorage
setSessionStorage 设置sessionStorage
getSessionStorage 获取sessionStorage
delSessionStorage 删除sessionStorage
getGeoLocation 获取定位信息
watchGeoLocation 启动定位监听
isFromMobileBrowser 判断网页是否通过移动端设备打开

  • RegExpHelper正则表达检查工具类
    • 静态方法
      • NON_NEGATIVE_INTEGER是否为非负整数
      • POSITION_INTEGER是否为正整数
      • EMAIL是否为email
      • URL是否为url

js.utils's People

Contributors

xizher avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.