摘要:
const isDevice = function() { // 判断是android还是ios还是web var ua = navigator.userAgent.toLowerCase() if (ua.match(/iPhone\sOS/i) 'iphone os' || ua.match(/ 阅读全文
posted @ 2021-12-28 08:51
Bug制造大神
阅读(179)
评论(0)
推荐(0)
摘要:
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 阅读全文
posted @ 2021-12-28 08:51
Bug制造大神
阅读(52)
评论(0)
推荐(0)

浙公网安备 33010602011771号