Javascript querySelectorAll";:不是";不';jQuery';谁的版本?

Javascript querySelectorAll";:不是";不';jQuery';谁的版本?,javascript,jquery,css,internet-explorer-8,Javascript,Jquery,Css,Internet Explorer 8,不幸的是,我必须支持IE8,并且需要使用:not修饰符选择输入。我知道IE8在querySelectorAll中不支持这一点,但是jQuery的版本支持IE8吗 查询选择全部: domElement.querySelectorAll( "input:not([name*='[statistic]']):not([type=button]),textarea:not([name*='[statistic]'])" ); jQuery( "input:not([name*='[statistic]

不幸的是,我必须支持IE8,并且需要使用
:not
修饰符选择输入。我知道IE8在
querySelectorAll
中不支持这一点,但是jQuery的版本支持IE8吗

查询选择全部:

domElement.querySelectorAll( "input:not([name*='[statistic]']):not([type=button]),textarea:not([name*='[statistic]'])" );
jQuery( "input:not([name*='[statistic]']):not([type=button]),textarea:not([name*='[statistic]'])", domElement );
jQuery:

domElement.querySelectorAll( "input:not([name*='[statistic]']):not([type=button]),textarea:not([name*='[statistic]'])" );
jQuery( "input:not([name*='[statistic]']):not([type=button]),textarea:not([name*='[statistic]'])", domElement );
简短回答:是的

一开始,jQuery流行的主要原因之一是它允许旧浏览器支持新的选择器,如
:not

因此,是的,您将能够在jQuery代码中使用
:not
和其他选择器

在IE8中不能将
:not
queryselectoral()
一起使用,因为IE8根本不支持它。IE8支持CSS2.1,它在发布时是当前的标准<代码>:不根本不在图片中。而且在旧的IE版本中根本不能使用
queryselectoral()

jQuery是专门为解决这些问题而创建的,它允许开发人员支持旧的IE版本,同时还允许我们使用现代浏览器功能


今天可能有人说你不再需要jQuery了,但是如果你需要支持旧的IE版本,那么对jQuery的需求和以前一样多。

jQuery1.X仍然支持IE8,jQuery2.X不支持