日期:2014-05-17 浏览次数:20400 次
<input id="Text1" type="text" style="width:100%" onblur="Check(this)" /> <script type="text/javascript"> function Check(obj){ obj.value=obj.value.replace(/[^\d,]/g,""); obj.value=obj.value.replace(/^(\d+(?:,\d+){0,69})[\d,]*/g,"$1"); } </script>