标签:
//匹配整数,正小数 appUtils.bindEvent($(_pageId+" .remind-list-con input"),function(){ var reg = /^(\d+\.)|(\d)|[\D.]/g this.value=this.value.replace(reg,‘$1$2‘); },"input onpropertychange");
JavaScript 匹配浮点数
原文地址:http://www.cnblogs.com/sallet/p/4655249.html