假设要删除属性id = 'good'的li节点 var li = document.getElementById('good'); li.parentNode.removeChild(li); 转载于:https://blog.51cto.com/wangronghao/756295