vue日期格式化封装
// 日期格式化export function parseTime(time, pattern) { if (arguments.length === 0 || !time) { return null } const format = pattern || '{y}-{m}-{d} {h}:{i}:{s}' let date if (typeof time === 'object') { date = time } else { if ((typeof time === 'st.
原创
2021-04-23 15:06:13 ·
314 阅读 ·
0 评论