我的客户端是WIN7,IE8
在用document.execCommand("saveas",true,"name.xls");
导出后的界面,支持的文件格式只有txt,htm,html。
我依照IE7的修改方法:
[HKEY_CLASSES_ROOT.xls] “PerceivedType”=”document”
[HKEY_CLASSES_ROOT.xlt] “PerceivedType”=”document”
还是没用,请大神们帮忙解决。
我的客户端是WIN7,IE8
在用document.execCommand("saveas",true,"name.xls");
导出后的界面,支持的文件格式只有txt,htm,html。
我依照IE7的修改方法:
[HKEY_CLASSES_ROOT.xls] “PerceivedType”=”document”
[HKEY_CLASSES_ROOT.xlt] “PerceivedType”=”document”
还是没用,请大神们帮忙解决。
http://stackoverflow.com/questions/2515791/execcommandsaveas-null-file-csv-is-not-working-in-ie8
最好是上传内容到服务器后输出content-disposition响应头来实现其他文件类型的保存