ts-road
v1.0.1
Published
Common methods of front-end development
Downloads
37
Maintainers
Readme
安装
npm install ts-road
引入
import { trim } from 'ts-road' // or
import { trim } from 'ts-road/dist'
API
- 📢 x 表示没有参数
- ☀️ string|number等表示有参数或者数据类型
- 💸 1或者true等表示该参数的默认值
- 🍫 ?意思是可以为空
| api | 说明 | 参数1 | 参数2 | 参数3 | 参数4 | 返回类型 | | --- | --- | --- | --- | --- | --- | --- | | urlToObj | url转对象 | string | x | x | x | Object | | phone | 电话验证 | string | x | x | x | Boolean | | identityCard | 身份证验证 | string | x | x | x | Boolean | | trim | 清除空格 | string | string | x | x | string | | randomColor | 随机16进制颜色 | x | x | x | x | string |
❤️ Common front-end methods will continue to be updated