将html表数据导出为ex​​cel

时间:2017-10-04 04:41:22

标签: html angularjs

我正在尝试将html表数据导出到excel。使用以下代码我可以导出到excel

 $scope.Export = function () {
    var blob = new Blob([document.getElementById('exportable').innerHTML], {
        type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8"
    });
    saveAs(blob, "Report.xls");

};

但是当我向表格添加分页时,我无法从所有页面导出所有数据,而只能从第一页导出数据。

请帮助我..提前致谢

0 个答案:

没有答案
相关问题