摘要: const reg = /(\d{3})(\d{4})(\d{4})/;return (date) => { if(!date) return ''; return date.replace(reg, "$1****$3")} 阅读全文
posted @ 2023-05-22 11:40 膽小 阅读(84) 评论(0) 推荐(0) 编辑
摘要: this.countdownTime = null;let send = 60;--send;this.getSmsCodeTip = `${send}s后重新获取`;this.countdownTime = setInterval(()=>{ --send; if(send 0){ this.ge 阅读全文
posted @ 2023-05-22 11:38 膽小 阅读(3) 评论(0) 推荐(0) 编辑
摘要: const Util = window.Util || {};Util.uniqueId = (length = 16, namespace = "jk") => { let text = ""; const possible = "abcdefghijklmnopqrstuvwxyz0123456 阅读全文
posted @ 2023-05-22 11:36 膽小 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.DateFormat = function (fmt) { fmt = fmt || "yyyy-MM-dd"; const o = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHou 阅读全文
posted @ 2023-05-22 11:32 膽小 阅读(3) 评论(0) 推荐(0) 编辑
摘要: /* eslint no-useless-escape: 0 */const reg = { // 包含中文 cn: /[\u4E00-\u9FA5]/g, mobile: /^[1][3|4|5|6|7|8|9][0-9]{9}$/, telephone: /^((0\d{2,3})-)(\d{7 阅读全文
posted @ 2023-05-22 11:29 膽小 阅读(4) 评论(0) 推荐(0) 编辑
摘要: $.fn.hChart=function (opt) { var setting=$.extend({ className:'', data:[] },opt); var tbody=this; var className=setting.className; var arr=setting.dat 阅读全文
posted @ 2019-04-12 14:28 膽小 阅读(247) 评论(0) 推荐(0) 编辑
摘要: $.extend({ socketWeb:function (opt) { if("WebSocket" in window){ var setting=$.extend({ url:'', opens:{}, messages:{}, closes:{}, err:{} },opt); var w 阅读全文
posted @ 2019-04-12 14:27 膽小 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale 阅读全文
posted @ 2019-04-11 17:57 膽小 阅读(244) 评论(0) 推荐(0) 编辑
摘要: net start mysql 阅读全文
posted @ 2019-04-05 20:40 膽小 阅读(119) 评论(0) 推荐(0) 编辑
摘要: phpstudy中Apache中httpd.conf中如下语句前#要有 #Include conf/extra/httpd-vhosts.conf 阅读全文
posted @ 2019-03-08 19:06 膽小 阅读(1325) 评论(2) 推荐(0) 编辑