摘要: //函数 UrlRegExpKey(regExpValue,DefaultsValue){ let windowUrl = window.location.href; let spm = new RegExp("spm") //如果地址栏里面有spm(埋点)就取第二?后面参数,没有就是第一?后参数 阅读全文
posted @ 2021-01-21 10:40 HandsomeGuy 阅读(278) 评论(0) 推荐(0)
摘要: 1、后端接口返回时间格式转换成时间戳 例:2021-02-15T09:33:08.694+0000 方案1: const time = 2021-02-15T09:33:08.694+0000 时间戳:new Date(time).getTime() 方案2: 安装moment import mom 阅读全文
posted @ 2021-01-21 10:21 HandsomeGuy 阅读(6959) 评论(0) 推荐(0)