1.0.0 • Published 3 years ago
liu-tools v1.0.0
##安装
npm install package-tolls
##导入
const init = require("package-tolls");
##格式化时间
//调用dateFormat对时间进行初始化
let dt = init.dateFormat(new Date());
//结果 2021-07-31 16:01:02
console.log(dt);
1.0.0
3 years ago