function chack_name(str){
var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>《》/?~!@#¥……&*()——|{}【】‘;:”“'。,、? ]");
if (pattern.test(str)){
return true;
}
return false;
}
转载于:https://www.cnblogs.com/kaifazheTT/p/9766684.html
function chack_name(str){
var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>《》/?~!@#¥……&*()——|{}【】‘;:”“'。,、? ]");
if (pattern.test(str)){
return true;
}
return false;
}
转载于:https://www.cnblogs.com/kaifazheTT/p/9766684.html