标签:io sp on cti as type text class ca
input text中只能输入数字和"-"号
<input type=‘text‘ onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,‘‘);}).call(this)" onblur="this.v();" />
标签:io sp on cti as type text class ca
原文地址:http://www.cnblogs.com/RedRoshan/p/4048900.html