[removed] querySelector Null vs querySelector

后端 未结 4 1653
既然无缘
既然无缘 2020-12-18 21:41

What is the main difference between these two methods of referencing?

What are the benefits of using one or the other? Also what kind of usage-case would they each

4条回答
  •  不思量自难忘°
    2020-12-18 22:23

    you could also do:

    [].filter.call([document.querySelector('.single-selected-class')], item => item)
        .forEach(item => item.blur());
    

提交回复
热议问题