var patt = /^(?:\d+|[a-zA-Z]+|[!@#$%^&*]+)$/g;
var result = patt.exec(value);
if(!result){
alert("请输入字母数字或者特殊字符");
return;
}
var patt = /^(?:\d+|[a-zA-Z]+|[!@#$%^&*]+)$/g;
var result = patt.exec(value);
if(!result){
alert("请输入字母数字或者特殊字符");
return;
}