I'm trying to make a js code that works with multiple pages.
I'm trying to use querySelectorAll() to obtain the elements form the DOM.
I need the elements to be ordered. In order to do that I may use xPath or selectors (I'd prefer to use selectors but xPath is also ok). The problem is:
Are the elements in the NodeList returned by querySelectorAll() ordered against the order that the tags appear in the HTML?
Note: I'd like to add the tag: querySelectorAll
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…