constgetParameterByName=function(name){
let values =decodeURIComponent((location.search.match(RegExp('[?|&]'+ name +'=([^\&]+)'))||[,null])[1]);returnisNullOrEmpty(values)|| values =='null'?'': values;};
validate //校验格式
//校验格式constvalidate=function(str, type){
let reg;switch(type){
casethis.VALIDATE_PHONE<