摘要:
//非空验证function IsNotEmpty(str) { if (str.replace(/(^[\s]*)|([\s]*$)/g, "") == "" || str.replace(/(^[\s]*)|([\s]*$)/g, "") == "不能为空.") return false; else return true;}//整型验证function IsInt(str) { if (str == "") return true; if (/^(\-?)(\d+)$/.test(str) 阅读全文