【发布时间】:2016-03-03 15:52:01
【问题描述】:
我正在使用 jqGrid 4.13.0,使用 IE8 时似乎会导致错误。错误定位在jquery.fmatter 模块中。
YesObject 和 NoObject 使用不兼容 IE8 的 Object.create。任何解决方法的想法?非常感谢。
var fmatter = $.fmatter,
getOptionByName = function (colModel, name) {
...
},
parseCheckboxOptions = function (options) {
...
},
YesObject = Object.create(null, {
1: { value: 1 },
x: { value: 1 },
"true": { value: 1 },
yes: { value: 1 },
on: { value: 1 }
}),
NoObject = Object.create(null, {
0: { value: 1 },
"false": { value: 1 },
no: { value: 1 },
off: { value: 1 }
});
【问题讨论】:
-
一定要支持ie8吗?支持 ie8 的网格功能已经不多了……
-
我确实想支持 IE8,但是我没有任何带 IE8 的电脑进行测试。我会将修复程序发布到 GitHub 并要求您进行测试。
标签: javascript jqgrid internet-explorer-8 compatibility free-jqgrid