摘要:
问题 如题所示 答案 相关源码: if ((typeof time 'string')) { if ((/^[0-9]+$/.test(time))) { // support "1548221490638" time = parseInt(time) } else { time = time.re 阅读全文
posted @ 2022-07-01 17:42
黄子涵
阅读(490)
评论(0)
推荐(0)
摘要:
问题 如题所示 答案 相关源码: export function parseTime(time, cFormat) { if (arguments.length 0) { return null } const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s} 阅读全文
posted @ 2022-07-01 17:03
黄子涵
阅读(20)
评论(0)
推荐(0)