servyou-sj-fe
v1.1.13
Published
A package of common js functions for servyou FE
Downloads
5
Maintainers
Readme
servyou-sj-fe
A package of common js functions
Installation
npm install -D servyou-sj-fe
Usage
import { toDoubleThousands } from 'servyou-sj-fe'
toDoubleThousands(23453455); // 23,453,455
// antD重构皮肤 .webpackrc Umi 配置文件需要加入
{
"extraBabelPlugins": [
["import", {"libraryName": "antd", "libraryDirectory": "es", "style": true}]
],
"theme": "./node_modules/servyou-sj-fe/lib/servyou-antd-theme.js"
}
Table of Content
|方法名|用途| |---|---| |toDoubleThousands|数据千分位| |clickBlankToHideWithJQ|jQuery点击空白处隐藏某区域| |formatDate|日期格式化:new Date()后转化为2019-10-01,间隔符自定义| |strLength|判断字符串长度,英文占一个字符,中文占两个字符| |flexBigScreen|页面布局自适应| |highLightKeywords|高亮关键字| |convertToTreeData|扁平结构转树结构| |diffFromArrays|从两个数组中找出不同拼成另一个数组| |isPhone| 是否是手机| |isEmail| 是否是电子邮箱| |isID| 是否是身份证号码|