📅  最后修改于: 2022-03-11 15:03:14.608000             🧑  作者: Mango
document.addEventListener("keydown", function (event) {
if (event.key == "Backspace") {
console.log("Backspace Pressed");
var plainlist = document.querySelectorAll('li.red');
console.log(plainlist);
plainlist.forEach(item => {
item.classList.remove("red");
})
}
})