JS判断是否为数字,是否为整数,是否为浮点数
摘要:1、JS判断是否为数字,是否为整数,是否为浮点数 正则表达式方法function checkRate(input){ var re = /^[0-9]+.?[0-9]*$/; //判断字符串是否为数字 //判断正整数 /^[1-9]+[0-9]*]*$/ if (!re.test(input.ra...
阅读全文
posted @ 2014-08-28 17:13
posted @ 2014-08-28 17:13
posted @ 2014-08-28 17:11
posted @ 2014-08-28 17:07
posted @ 2014-08-28 17:03