theonelims-base
v1.0.0
Published
工程全局变量及基础函数
Downloads
7
Readme
@TheOneLIMS/base 工程全局变量及基础函数
说明
| 路径 | 说明 |
| --- | --- |
| ajax | 数据请求代理 |
| mixins | 全局注入 |
| util | 全局函数 |
全局变量
# 环境信息
BASE_URL:'//127.0.0.1:5301'
LANG:'zh_cn'
# 用户信息
user:{
id: '',
name:'用户名',
token:'',
IP:'192.168.1.2'
},
isLogin:true
全局函数
$util._dateFormat #时间转字符串
$util._timeStampToDate #时间戳转字符串
$util._sleep #睡眠
$util._randomNum #生成[min,max]的随机数
$util._numberComma #分割数字