document.querySelectorAll - How to avoid getting nested elements with the given parameter?

前端 未结 0 1011
灰色年华
灰色年华 2021-01-19 22:58

I\'m fetching one web and I need to get list of all elements with the given class name. The problem is that my array also contains nested elements (fetched from the parent)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题