特殊字符的处理 function CheckStr(str){ var myReg = /^[^@\/\'\\"#$%&\^\*]+$/; if(myReg.test(str)) return true; return false; }