12 2021 档案
摘要:const checkStr = function(str, type) { // 常用正则验证,注意type大小写 switch (type) { case 'phone': // 手机号码 return /1[3|4|5|6|7|8|9][0-9]{9}$/.test(str) case 'te
阅读全文
摘要:const isDevice = function() { // 判断是android还是ios还是web var ua = navigator.userAgent.toLowerCase() if (ua.match(/iPhone\sOS/i) 'iphone os' || ua.match(/
阅读全文

浙公网安备 33010602011771号