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