while (mydiv.firstChild) {. mydiv.removeChild(mydiv.firstChild);. } 翻译自: https://css-tricks.com/snippets/javascript/remove-element/.
確定! 回上一頁