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