摘要: //非空验证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) 阅读全文
posted @ 2013-03-01 10:40 放哨De老鼠 阅读(151) 评论(0) 推荐(0) 编辑