<input type="number" onKeyDown="if(this.value.length==2) return false;" />. 但是這會導致在滿足2個數字的時候,再按刪除鍵(或者說是所有按鍵) ...
確定! 回上一頁