安装 npm install el-formatdate 导入 const filters = require("./el-formatdate/index"); 格式化时间 // 使用 filters 中的 formatDate 函数进行格式化 const formattedDate = filters.formatDate(new Date()); console.log(formattedDate); 开源协议 ISC