wucheng-tools

时间格式化,HTMLEscape

Usage no npm install needed!

<script type="module">
  import wuchengTools from 'https://cdn.skypack.dev/wucheng-tools';
</script>

README

安装

npm i WuCheng-tools 

导入

const wucheng = require('./WuCheng-tools');

格式化日期

var t = wucheng.formatTime(date, '年月日')

转译

var str = wucheng.escape(htmlStr)

还原

var unescape = wucheng.unescape(str)

开源协议

ISC