我已经为 ExtJs 4 实现了这个 UX(它从 ExtJs 4 网格或商店生成一个 Excel 文件)
http://druckit.wordpress.com/2013/10/26/generate-an-excel-file-from-an-ext-js-4-grid/#comment-982
它在 Chrome 中完美运行,但是在任何版本的 IE 中我不断收到此错误“传递给系统调用的数据区域太小”
这是似乎是问题的代码片段,完整的代码在上面的链接中。
var el = Ext.DomHelper.append(gridEl, {
tag: "a",
download: title + "-" + Ext.Date.format(new Date(), 'Y-m-d Hi') + '.xls',
//download: 'descarga.xls',
href: location
});
el.click(); //this line seems to be causing the error
Ext.fly(el).destroy();
}
我知道有 downlodify 和其他选项(如服务器端生成),但目前它们不是我的选项。
我有没有机会让这个 UX 在 IE 中工作?
谁能指出我正确的方向?
谢谢你。