1.3.0 • Published 1 year ago

chaodabing v1.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

1.安装

npm install chaodabing

2.导入

const itheima = require('itheima-tools')

3.格式化时间

调用dateFormat函数来进行格式化时间
dates.fn();

4.转义html中的特殊字符

const htmlStr = '这<h1 title = "abc">是h1标签<span>123&nbsp;</span></h1>';
const str = dates.htmlEscape(htmlStr);

5.还原html中的特殊字符

const unstr = dates.htmlunEscape(str);
console.log(unstr);
1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago