🌈 搜索
📅 最后修改于: 2022-03-11 15:03:21.979000 🧑 作者: Mango
var input = document.getElementById('myInput'); input.onkeydown = function() { var key = event.keyCode || event.charCode; if( key == 8 ){ //backspace pressed } };