10 2023 档案

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

点击右上角即可分享
微信分享提示