1.0.1 • Published 6 years ago

react-cli-yh v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

使用方法

npm run dev 线上版本 npm run build 正式版本

公共封装js

typeJudgment.js:判断是否为PC,判断是那个浏览器, String验证是类型有 手机号/身份证/座机/邮编/qq号/网址/数字英文大小些等...

data.js: 时间/日期/星期等封装

other.js:获取网址参数,获取全部url参数,并转换成json对象, 删除url指定参数,返回url, 获取十六进制随机颜色, 图片加载, 音频加载, DOM转字符串, 字符串转DOM, 光标所在位置插入字符,并设置光标位置, 光标所在位置插入字符

number.js: 随机数范围, 将阿拉伯数字翻译成中文的大写数字, 将数字转换为大写金额

Public encapsulation js

 textTypeJudgment. Js: determine whether for PC, judgment is the browser, the String type validation is have a phone number/id no. / machine/zip/qq/url/digital size some English...Data. Js: time/date/week encapsulationOther. Js: get url parameters, obtaining all the url parameter, translates into a json object, delete url specified parameters, returning url, obtaining random hexadecimal color, loading images, audio load, DOM string, the string DOM, insert cursor characters, and set the cursor position, the characters of the insertion cursorNumber. Js: random number range, the Arabic numerals to translate into Chinese capital number, converts Numbers to the amount of capital
1.0.1

6 years ago

1.0.0

6 years ago