摘要: <input type='text' onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" onblur="this.v();" />在失去焦点时也进行验证,因为可以用输入法输入 阅读全文
posted @ 2017-09-18 17:27 家宁 阅读(523) 评论(0) 推荐(0) 编辑