4.13 鍵盤相關事件與事件物件
通常用在一般文字框
var text_input = document.getElementById("text_input");
text_input.addEventListener("keyup", function(e){
console.log(e.which)
});撰寫「實作:待辦事項」的第一步
Last updated
var text_input = document.getElementById("text_input");
text_input.addEventListener("keyup", function(e){
console.log(e.which)
});Last updated