摘要: getQueryParam: function(name){ var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg); if(r 阅读全文
posted @ 2021-08-06 15:17 张哲Zeo 阅读(106) 评论(0) 推荐(0)
摘要: // 检测是否为中文,true表示是中文,false表示非中文 const isChinese = (str) => { // 中文万国码正则 if (/[\u4E00-\u9FCC\u3400-\u4DB5\uFA0E\uFA0F\uFA11\uFA13\uFA14\uFA1F\uFA21\uFA 阅读全文
posted @ 2021-08-06 15:06 张哲Zeo 阅读(234) 评论(0) 推荐(0)
摘要: 1. 通过扩展jQuery html代码 <div style="width: 300px;height: 500px; border: 1px solid red;overflow: scroll;"> <div id="scoll" class="scroll"> <div style="wid 阅读全文
posted @ 2021-08-06 15:00 张哲Zeo 阅读(147) 评论(0) 推荐(0)
摘要: // 转化UTC时间 function transUTCTime(fmt,date){ let ret; date = new Date(date) const opt = { "Y+": date.getUTCFullYear().toString(), // 年 "m+": (date.getU 阅读全文
posted @ 2021-08-06 14:54 张哲Zeo 阅读(74) 评论(0) 推荐(0)
摘要: } const jsGetAge = (strBirthday) => { var date = new Date(strBirthday); date = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate() 阅读全文
posted @ 2021-08-06 14:47 张哲Zeo 阅读(170) 评论(0) 推荐(0)