var remove_obj = document.getElementById(id);var parent_obj = remove_obj.parentNode;parent_obj.removeChild(remove_obj); 相关文章: