摘要:
const reg = /(\d{3})(\d{4})(\d{4})/;return (date) => { if(!date) return ''; return date.replace(reg, "$1****$3")} 阅读全文
摘要:
this.countdownTime = null;let send = 60;--send;this.getSmsCodeTip = `${send}s后重新获取`;this.countdownTime = setInterval(()=>{ --send; if(send 0){ this.ge 阅读全文
摘要:
const Util = window.Util || {};Util.uniqueId = (length = 16, namespace = "jk") => { let text = ""; const possible = "abcdefghijklmnopqrstuvwxyz0123456 阅读全文
摘要:
Date.prototype.DateFormat = function (fmt) { fmt = fmt || "yyyy-MM-dd"; const o = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHou 阅读全文
摘要:
/* 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 阅读全文