Best way to find DOM elements with css selectors

后端 未结 5 843
感情败类
感情败类 2020-11-29 06:19

What\'s the easiest way to find Dom elements with a css selector, without using a library?

function select( selector ) {
 return [ /* some magic here please          


        
5条回答
  •  佛祖请我去吃肉
    2020-11-29 06:32

    No there's no built in way. Essentially, if you decide to go without jQuery, you'll be replicating a buggy version of it in your code.

提交回复
热议问题