随笔分类 - 前端
摘要:用js 写的倒计时逻辑。 countDown(time) { let sTime = { min1: '',//十位分钟 min2: '',//个位分钟 second: '',//十位秒 second2: '',//个位秒 }; var cut_time = time; let timer = se
阅读全文
摘要:getRequestParams() { const url = window.location.search; // 获取url中"?"符后的字串 const theRequest = {}; if (url.indexOf('?') !== -1) { const str = url.subst
阅读全文
摘要:browserutil.client.agent.indexOf('xxxx') ,'xxxx'为该浏览器的标志值 browserutil.client.agent.indexOf('firefox') > 0 || // 火狐浏览器 android browserutil.client.agent
阅读全文
摘要:/** * 邮箱 * @param {*} s */ export function isEmail(s) { return /^([a-zA-Z0-9._-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/.test( s ); } /** * 手
阅读全文
摘要:用于前端国家选择列表的数据来源。 js 文件地址 https://blog-static.cnblogs.com/files/erinmin/countriesList.js
阅读全文

浙公网安备 33010602011771号