JavaScript and querySelector

后端 未结 4 570
情话喂你
情话喂你 2021-01-25 03:55

I have this HTML:

Intermediate steps

\"intermediate
4条回答
  •  一整个雨季
    2021-01-25 04:13

    Try this code

    document.querySelector('.staticStep :nth-child(i)').src = images[num][i];
    
    where i = 0,1,2,--- ,n.
    

提交回复
热议问题