输入框中只能输入英文或数字input onkeyupvaluevalue.replace(/[\W]/g,) onbeforepasteclipboard
输入框中只能输入英文或数字
<input onkeyup="value=value.replace(/[\W]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">?
输入框中只能输入英文或数字
<input onkeyup="value=value.replace(/[\W]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))">?