摘要:
非常好用,代码示例如下:<input onkeypress = "returnevent.keyCode>=48&&event.keyCode<=57||event.keyCode==46" onpaste = "return!clipboardData.getData('text').match(/\D/)" ondragenter = "returnfalse" style= "ime-mode:Disabled">说明1 只能输入0到9和小数点2 只能粘 阅读全文