var list = document.querySelector('#test-list'); for (let e of Array.from(list.children)) { var text = e.innerText; if ('JavaScript' !== text && 'HTML' !== text && 'CSS' !== text) { list.removeChild(e); } }
Sign in to make a reply
谢谢碎碎念