Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Can';t在IE7中加载jqgrid_Javascript_Jquery_Jqgrid - Fatal编程技术网

Javascript Can';t在IE7中加载jqgrid

Javascript Can';t在IE7中加载jqgrid,javascript,jquery,jqgrid,Javascript,Jquery,Jqgrid,我得到了以下错误: SCRIPT1028:预期的标识符、字符串或数字recruit.html;jsessionid=1f7j1qesicu7u,第646行字符56 var pagerPrevTD=$('',{class:“myPager”}),prevPagesIncluded=0, pagerNextTD=$('',{class:“myPager”}),nextPagesIncluded=0, totalStyle=grid[0]。p.pginput==false, startIndex=to

我得到了以下错误:

SCRIPT1028:预期的标识符、字符串或数字recruit.html;jsessionid=1f7j1qesicu7u,第646行字符56

var pagerPrevTD=$('',{class:“myPager”}),prevPagesIncluded=0,
pagerNextTD=$('',{class:“myPager”}),nextPagesIncluded=0,
totalStyle=grid[0]。p.pginput==false,
startIndex=totalStyle?this.p.page-MAX_PAGERS*2:this.p.page-MAX_PAGERS;

我想您应该将
{class:“myPager”}
替换为

{"class": "myPager"}
因为旧版本的Internet Explorer将
解释为保留字,如果不加引号,则不能将其用作属性

您可以将
$('',{class:“myPager”})重写为
$('').addClass(“myPager”)
,或者只使用
$('')

{"class": "myPager"}