js正则表达式判断是否整数
//是否整数(包括负数)function isInt(strVar) { var str = strVar.match(/^(-|\+)?\d+$/); if (str == null) { return false; } else { return true; }}