例如,今天你想要當使用者在 input 輸入框按下「enter」 時,發動 submit ,就可以這樣做: textBox.addEventListener('keydown', function(e){ // enter 的keyCode 是13 ...
確定! 回上一頁