该方法主要实现,在input输入框中,只能输入电话号码。
包括手机号和座机号(0-9以及-)
<input type='text' "(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" "this.v();" />
该方法主要实现,在input输入框中,只能输入电话号码。
包括手机号和座机号(0-9以及-)
<input type='text' "(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" "this.v();" />