How to find element without use ID

前端 未结 5 374
甜味超标
甜味超标 2021-01-27 14:43

I have DOM element in array

this.object = 
     
\"color1 text1
5条回答
  •  温柔的废话
    2021-01-27 14:58

    You would use this.element[i] to access any element in the array, and then you can access the children of those elements:

    this.element[0].childNodes[0].innerHTML = "paint one";
    

提交回复
热议问题