IE9 equivalent of querySelectorAll

后端 未结 3 1886
长情又很酷
长情又很酷 2020-12-20 22:16

I haven\'t had any problems in FF or Chrome, but IE9 chucks an error on this method. I thought I would be able to use it, due to it having been shown to be supported here:

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-20 22:29

    You need to use the html5 doctype for IE9 to work with the querySelectorAll() javascript method. The doctype looks like this and should be placed as the first line on all the pages in your site.

    
    

提交回复
热议问题