![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
封装
麦林斯khoo
这个作者很懒,什么都没留下…
展开
-
用户跳转公众号,获取链接(url)里面的code,截取字符串
用户跳转公众号,获取链接(url)里面的code,截取字符串原创 2022-03-19 12:10:36 · 688 阅读 · 0 评论 -
更改后端返回的时间格式,对字符串时间格式化
// 格式化日期 封装函数 FormatDate(date, str) { //参数是时间、格式//年月日时分秒 str = str.split("yyyy").join(date.getFullYear()) str = str.split("MM").join(date.getMonth() + 1 < 10 ? '0' + '' + (date.getMonth() + 1) : date.getMonth()); str = str.spli.原创 2022-03-18 19:38:23 · 1097 阅读 · 0 评论