10 2023 档案
摘要:// 解析URL路由传参 const urlParams = () => { const strParams = decodeURI(location.search.replace('?', '')) const arrParams = strParams.split('&') const para
阅读全文
摘要:// 对Date的扩展,将 Date 转化为指定格式的String // 月(M)、日(d)、小时(h)、分(m)、秒(s)、季度(q) 可以用 1-2 个占位符, // 年(y)可以用 1-4 个占位符,毫秒(S)只能用 1 个占位符(是 1-3 位的数字) // 例子: // (new Date
阅读全文