Discuss / JavaScript / 不熟悉js

不熟悉js

Topic source

var list = document.getElementById('test-list')

var arr = ['JavaScript', 'HTML', 'CSS']

Array.from(list.children).forEach((v) => {

arr.includes(v.innerText) ? v : list.removeChild(v)

})

不好,是大佬 <*_*>

不染☆づ

#3 Created at ... [Delete] [Delete and Lock User]

无形装逼,最为致命


  • 1

Reply