08 2021 档案

摘要: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 阅读(92) 评论(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 阅读(200) 评论(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 阅读(135) 评论(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 阅读(63) 评论(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 阅读(160) 评论(0) 推荐(0) 编辑

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