ele.remove() 自己移除自己






另一种使用方法
this.parentNode.parentNode.removeChild(this.parentNode);

你可能感兴趣的:(HTML结构,DOM)