摘要:
//获取url中的参数集合 getUrlParams(){ //获取到Url并且解析Url编码 var url = decodeURI(window.location.href); var theRequest = new Object(); if (url.indexOf("?") != -1) 阅读全文
摘要:
//手机 checkTelPone(phone){ var isPhone = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,8}$/; var isMob=/(^1\d{2,3}-?\d{7,8}$)|(^1\d{10}$)/; if(isMob.test(phone)||is 阅读全文
摘要:
formatDate(value){ let date = new Date(value); let y = date.getFullYear(); let MM = date.getMonth() + 1; MM = MM < 10 ? ('0' + MM) : MM; let d = date. 阅读全文
摘要:
//判断安卓和ios appSource() { const u = navigator.userAgent; const isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); if (isiOS) { return "ios"; } else { 阅读全文