getElementsByClassName returns [] instead of asynchronous appended node

后端 未结 6 1885
野性不改
野性不改 2020-12-17 05:40

(I ask my question again after the first one was terribly formulated)

I face the following problem:

6条回答
  •  一整个雨季
    2020-12-17 06:28

    
    

    The above code is gray for a reason: it's a comment. Comments aren't parsed by the browser at all and have no influence on the page whatsoever.

    You'll have to parse the HTML, read the comments, and make a new DOM object with the contents of the comment.

提交回复
热议问题