itheima-tools-hey
1.0.0 • Public • Published
npm install itheima-tools-hey
const itheima =require('itheima-tools-hey')
const dtStr =itheima.dataFormat(new Date())
console.log(dtStr)
const htmlStr='<h1 title="abc">h1标签 </h1>';
const str=itheima.htmlEscape(htmlStr);
//转换结果<h1 title="abc">h1标签&nbsp;</h1>
const str2= itheima.htmlUnEscape(str);
console.log(str2);
//<h1 title="abc">h1标签 </h1>
Dependencies (0)
Dev Dependencies (0)
Package Sidebar
Install
Weekly Downloads