14
01/16
input只能输入数字
<html><head><script language="jscript"> function number() { var char = String.fromCharCode(event.keyCode) var re = /[0-9]/g event.returnValue = char.match(re) != null ? true : false } function filterInput() { if (event.type.indexOf("key") != -1) { var re = /37|38|39|40/g if (event.keyCode.toString().match(re)) return false } event.srcElement.value = event.srcElement.value.replace(/[^0-9]/g, "") } function filterPaste() { var oTR = this.document.selec...