javascript SaveAs for Excel

时间:2014-09-30 15:22:18

标签: javascript excel

我有以下内容:

var oWin = window.open("about:blank", "_blank");
oWin.document.write(strExcelHtml);
oWin.document.close();
var success = oWin.document.execCommand('SaveAs', false, fileName)
oWin.close();

当保存窗口出现时,我希望将.xls视为"另存为"类型。我该怎么做?

0 个答案:

没有答案