📅  最后修改于: 2022-03-11 15:04:30.258000             🧑  作者: Mango
function removeItem(e) {
var target = e.target;
if(target.tagName !== 'LI') return;
target.parentNode.removeChild(target);
}
list.addEventListener('click', removeItem);