因為都是按同一個鍵,所以都是得到「Digit1」的結果。 charCode (deprecated). 只有 keypress 事件有作用,這邊不管按什麼都只會輸出 0. keyCode ...
確定! 回上一頁