Call the remove() method on the parent, e.g. child.parentElement.remove() . Here is the HTML for this example. index.html.
確定! 回上一頁