导出格式不可控,但是使用简单,可解燃眉之急。
function export(){
var oXL = new ActiveXObject("Excel.Application");
var oWB = oXL.Workbooks.Add();
var oSheet = oWB.ActiveSheet;
var sel=document.body.createTextRange();
sel.moveToElementText(myTable);
sel.select();
sel.execCommand("Copy");
oSheet.Paste();
oXL.Visible = true;
}
Post a comment now »
本文目前不可评论
Sorry, the comment form is closed at this time.
No comments yet.