2 ms·
yep. and please dont query the dom 100k times, or in a loop :)
by leeoniya 5y ago
yep. and please dont query the dom 100k times, or in a loop :)
- afiori 5y agoalso with querySelector you can use queries like > ids.map(id=> `#test${id}`).join(" , ") or > `[id^="test"]` to get all elements that have an id that starts with test