npm install test-zyz-game
import { xxx } from 'test-zyz-game'
//调用DateFormat对时间进行处理
import { DateFormat } from 'test-zyz-game'
const date = DateFormat(new Date())
// 结果 2022-06-02 16:43:33
// 定义待转换的字符串
import { htmlEscape } from 'test-zyz-game'
const htmlstr = '<h1 title="abc">这是和标签<span>123 </span></h1>'
const date = htmlEscape(htmlstr)
console.log(date)
// 结果 <h1 title="abc">这是和标签<span>123&nbsp;</span></h1>
// 定义待还原的字符串
import { htmlUnEscape } from 'test-zyz-game'
const htmlstr = '<h1 title="abc">这是和标签<span>123&nbsp;</span></h1>'
const date = htmlUnEscape(htmlstr)
console.log(date)
// 结果 <h1 title="abc">这是和标签<span>123 </span></h1>
<tanchishe/>
import { tanchishe } from 'test-zyz-game'
components:{
tanchishe
},
<saolei/>
import { saolei } from 'test-zyz-game'
components:{
saolei
},
<wuziqi/>
import { wuziqi } from 'test-zyz-game'
components:{
wuziqi
},
ISC