itheima-tools-yancy
v1.0.0
Published
<!-- 名字必须与安装包的package.json文件的name属性相同!!!!!! --> npm i itbaima-tools # 导入 const itheima=require('itbaima-tools') # 使用 <!-- 格式化时间 --> const dateStr=itheima.dateFormate(new Date()) console.log(dateStr) <!-- 转义html特殊字符 --> const htmlStr='<h1 title="
Downloads
5
Readme
安装
npm i itbaima-tools
导入
const itheima=require('itbaima-tools')
使用
const dateStr=itheima.dateFormate(new Date()) console.log(dateStr)
const htmlStr='这是h1标签123 ' const htmlS=itheima.htmlEscape(htmlStr) console.log(htmlS)
const htmlS2=itheima.htmlUnEscape(htmlS) console.log(htmlS2)
协议
ISC