//删除节点 var noWebNode =['Swift','ANSI C','DirectX']; var test_list =document.getElementById("test-list"); for( x of test_list.children){ if(noWebNode.indexOf(x.innerText)!=-1){ test_list.removeChild(x) } }
Sign in to make a reply
阿花的阿发