document.querySelectorAll(’link\\.jrWebFont’) ;
特殊字符转义一下试试

解决方案 »

  1.   

    我原来是IE6,后来直接装的IE8
      

  2.   

    以下是我的aaa.htm的全部内容,只有4行:test
    <script type="text/javascript" >
    document.querySelectorAll('link.jrWebFont');
    </script>在xp sp3 / win 7 + IE8下都显示没有此方法或属性。
      

  3.   

    document.querySelectorAll 这个html5的方法 ,不支持就换个别的方法。
      

  4.   

    document.querySelectorAll() 是 HTML5中引入的新方法,它的使用方式与jQuery的选择器相同.
    由于它是HTML5原生的方法,所以不需要添加jQuery引用。
    IE8默认不支持html5.如果希望IE8支持html5,请参考 让IE浏览器支持HTML5标准的方法
      

  5.   

    document.querySelectorAll() 是 HTML5中引入的新方法
    IE8默认不支持html5
      

  6.   

    IE本来就不支持很多东西,这也没什么好奇怪的而且楼主说的这个方法也就支持html5的才行如果真想用,建议客户换浏览器吧,换成支持html5的那些
      

  7.   

    升级IE吧  这个属于很html5的东西
      

  8.   

    在html或jsp中添加以下代码:
    <head>
    <script type="text/javascript">
    if ( !document.querySelectorAll ) {
    (function(d, s) {
    d=document, s=d.createStyleSheet();
    d.querySelectorAll = function(r, c, i, j, a) {
    a=d.all, c=[], r = r.replace(/\[for\b/gi, '[htmlFor').split(',');
    for (i=r.length; i--;) {
    s.addRule(r[i], 'k:v');
    for (j=a.length; j--;) a[j].currentStyle.k && c.push(a[j]);
    s.removeRule(0);
    }
    return c;
    }
    })()
    }
    </script>
    </head>