Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "fe-utils", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "fe-utils.js", |
@@ -1,2 +0,2 @@ | ||
# fe-utils v1.0.2 | ||
# fe-utils v1.0.4 | ||
collect all kinds of utility functions that are often used by us. | ||
@@ -20,3 +20,3 @@ | ||
// Load the full build. | ||
var feUtils = require('fe-utils') | ||
var feUtils = require('fe-utils') // not recommend | ||
@@ -28,21 +28,21 @@ // Load method categories. | ||
#### allMethods: | ||
1. ** NumberToChinese ** | ||
* NumberToChinese(12345) // '一万二千三百四十五' | ||
* NumberToChinese(12345, true) // '壹万贰仟叁佰肆十伍' | ||
2. ** cookie ** | ||
* setCookie(name, domain, domain, expiredays) | ||
* getCookie(name) | ||
* delCookie(name, domain) | ||
3. ** date ** | ||
* dateFormat() // dateFormat(new Date(), 'MM月dd日 hh:mm:ss') | ||
4. ** detectedInfos ** | ||
1. **NumberToChinese** | ||
* ```NumberToChinese(12345) // '一万二千三百四十五'``` | ||
* ```NumberToChinese(12345, true) // '壹万贰仟叁佰肆十伍'``` | ||
2. **cookie** | ||
* ```setCookie(name, domain, domain, expiredays)``` | ||
* ```getCookie(name)``` | ||
* ```delCookie(name, domain)``` | ||
3. **date** | ||
* ```dateFormat() // dateFormat(new Date(), 'MM月dd日 hh:mm:ss')``` | ||
4. **detectedInfos** | ||
* isAndroid / isIOS / isWindowPhone / isWX / isWeibo / isMobile / isPC | ||
5. ** preventViewScroll ** | ||
5. **preventViewScroll** | ||
* <https://github.com/lzwaiwai/preventViewScroll> | ||
6. ** urlQuery ** | ||
* queryOne // queryOne('name', ['http://xx.com?name=kevin']) -> 'kevin' | ||
* queryAll // queryOne('http://xx.com?name=kevin&age=18') -> {name: 'kevin', age: 18} | ||
7. ** toRoman ** | ||
toRoman(25) // 'XXV' | ||
8. ** getVersionOfIOS ** | ||
6. **urlQuery** | ||
* ```queryOne // queryOne('name', ['http://xx.com?name=kevin']) -> 'kevin'``` | ||
* ```queryAll // queryOne('http://xx.com?name=kevin&age=18') -> {name: 'kevin', age: 18}``` | ||
7. **toRoman** | ||
* ```toRoman(25) // 'XXV'``` | ||
8. **getVersionOfIOS** | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30613