JavaScript 匹配浮点数

//匹配整数,正小数
appUtils.bindEvent($(_pageId+" .remind-list-con input"),function(){
  var reg = /^(d+.)|(d)|[D.]/g
  this.value=this.value.replace(reg,'$1$2');
},"input onpropertychange");

  

原文地址:https://www.cnblogs.com/sallet/p/4655249.html