我收到了以下错误:
SCRIPT1028:预期的标识符,字符串或数字recruit.html; jsessionid = 1f7j1qesicu7u,第646行56字符
var pagerPrevTD = $('<td>', {class: "myPager"}), prevPagesIncluded = 0,
pagerNextTD = $('<td>', { class: "myPager"}), nextPagesIncluded = 0,
totalStyle = grid[0].p.pginput === false,
startIndex = totalStyle? this.p.page-MAX_PAGERS*2: this.p.page-MAX_PAGERS;
答案 0 :(得分:2)
我想您应该将{class: "myPager"}
替换为
{"class": "myPager"}
因为旧版本的Internet Explorer将class
解释为保留字,不能在没有引用的情况下用作属性。
您可以将$('<td>', {class: "myPager"})
重写为$("<td>").addClass("myPager")
或仅使用$("<td class='myPager'></td>")
。