📅  最后修改于: 2022-03-11 14:52:55.197000             🧑  作者: Mango
function remove() {
var element = this.id;
//I have also tried using document.getElementByID(this.id)
element.remove();
//I have also tried using element.parentNode.removeChild(element); to remove the element.
}