限定文本框只能輸入數字

在input中加入下面代碼 : 0nKeyPress="if (event.keyCode<48 || event.keyCode>57) event.returnValue=false「input

相關文章
相關標籤/搜索