Notice: Undefined variable: bid in /home/wwwroot/cczh004/wwwroot/public/class.php on line 3
搜索列表
-
javascript 正则 判断是否是数字的脚本
【正则表达式】不错的一个用正则检测输入的字符是否为数字的代码,也是一种并不常见的写法 Untitled Document function $(obj){ return document.getElementById(obj); } function checkIsInteger(str) { //如果为空,则通过校验 if(str == "") return true; if(/^(\-?)(\d+)$/.test(str)) return true; else return false; } String....
javascript正则判断是否是数字的脚本