📅  最后修改于: 2022-03-11 15:02:33.355000             🧑  作者: Mango
function removeElementsByClass(className){
var elements = document.getElementsByClassName(className);
while(elements.length > 0){
elements[0].parentNode.removeChild(elements[0]);
}
}