let fn={}
fn.range=(l=0)=>{return Array.from({length:l})}
fn.q=(s,doc=document)=>{return doc.querySelector(s)}
;
let a=fn.range(20).map((d,i)=>`<li>${i}</li>`).join('\n')
document.body.innerHTML+=`<div><li>dummly li</li></div><ol>${a}</ol>`
;
fn.q('ol>li:nth-child(9)').textContent='xxxxxxx'
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00