js,数字判断
?
function isNumber(str){ if(""==str){ return false; } var reg = /\D/; return str.match(reg)==null; }