1.0.1 • Published 2 years ago
szp-tool v1.0.1
szp-tool
介绍
可用接口列表
- isString()
- isArray()
- isObject()
- isNumber()
- isUndefined()
- isNull()
- isFunction()
- isNaN()
- htmlLabelReplace()
安装教程
npm install szp-tool
使用说明
const { isString,htmlLabelReplace} = require('szp-tool');
console.log(isString(123)) //false
console.log(isString('123)) //true
console.log(htmlLabelReplace('<span>123</span>')) // <span>123456</span>
//页面展示 <span>123</span> 但不会有任何样式
或
const xxx = require('szp-tool');
xxx.isStrng(param)