标签:
判断输入的是整数或是小数(正确格式)
var re = /^\d+(\.\d)?$/; var bol = re.test(‘2.3’);
JS正则表达式
原文地址:http://www.cnblogs.com/ITCoNan/p/4793678.html