📅  最后修改于: 2022-03-11 15:03:41.892000             🧑  作者: Mango
var container = document.getElementById("container");
var elements = container.getElementsByClassName("deleteme");
while (elements[0]) {
elements[0].parentNode.removeChild(elements[0]);
}