摘要:
传统注册过滤器 1、先在 filters/index.js 文件中导出方法 /** * * @param {*} date * @returns */ export function dateTimeFormat(date) { const json_date = new Date(date).to 阅读全文
posted @ 2022-03-18 14:26
DeyouKong
阅读(715)
评论(0)
推荐(0)
摘要:
1、计算某个日期距当前时间多少分钟/时/天 /** * @param {number} time */ export function timeAgo(time) { const between = Date.now() / 1000 - Number(time) if (between < 360 阅读全文
posted @ 2022-03-18 14:06
DeyouKong
阅读(44)
评论(0)
推荐(0)

浙公网安备 33010602011771号