哪错勒,为什么只想删除一个确不成功
<div id="content">
<h1>html</h1>
<h1>php</h1>
<h1>javascript</h1>
<h1>jquery</h1>
<h1>java</h1>
</div>
<script>
var coi = document.getElementById("contennt");
var dai = coi.removeChild(coi.childNodes[1]);
dai = null;
</script>
<div id="content">
<h1>html</h1>
<h1>php</h1>
<h1>javascript</h1>
<h1>jquery</h1>
<h1>java</h1>
</div>
<script>
var coi = document.getElementById("contennt");
var dai = coi.removeChild(coi.childNodes[1]);
dai = null;
</script>
2020-06-01
举报