js 输入屏蔽

<input value= "1" onKeyPress= "if (event.keyCode < 48 || event.keyCode > 57) event.returnValue = false;" type= "text" name=txtNum size= "4" maxlength= "4" style= "ime-mode:Disabled">
 
style="ime-mode:Disabled"屏蔽输入法

你可能感兴趣的:(js,职场,输入法,屏蔽,休闲)