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");

  

posted @ 2015-07-17 17:40  GrandKai  阅读(425)  评论(0)    收藏  举报