javascript节点移除 var itemdel = document.getElementById("test"); itemdel.removeChild(lis[0]); 兼容性较好 itemdel.remove();在IE下不支持。