var item = document.getElementById("toDo").value;
paragraph.addEventListener("click", removeChild我尝试了setAttribute("onclick",removeChild(段落)),但似乎不起作用。每次都会出现错误"removeChild is not defined“。
我正在尝试构建一个条件语句,它将在不同的计时器延迟时执行addChild和removeChild。(TimerEvent.TIMER, timerListener); this.removeChild(oldSection); //I get error #1006 removeChild is not a function.
if (myFireball.x + 1000 < player.x) if (myFireball.parent) myFireball.parent.removeChildgombas[m])) if (fireballs[i].parent) fireballs[i].parent.removeChild为什么它不能与removeChild一起工作。