Package Exports
- licos-tools
Readme
licos tools lib
安装
npm i licos-tools
使用
import tools from 'licos-tools'
common 类
获取UUID
uuid (len: number, radix: number): string
实例:tools.common.uuid(8,16);//获取8位16进制的字符串
返回:1f2a3c41检测版本号
checkVer(oldVer: string, newVer: string): boolean
实例:tools.common.checkVer('10.0.1','10.0.2');
返回:true截取自定义长度的字符串
fixLen(str: string, len: number): string
实例:tools.common.fixLen('我们是联诚科技',3);
返回:我们是...