阅读背景:

angularJS通过post方法下载excel文件

来源:互联网 
exportData: function (templateId, rowId) {
                var config = {
                    headers: {
                        'Content-Type': 'application/json'
                    },
                    responseType: 'arraybuffer'
                };
                return $http.post(commonSvc.baseURlForDCBulk + 'api/export/' + templateId, rowId, config).then(
                    function (response) {
                        var blob = new Blob([response.data], {type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetexportData: function (templateId, rowId) {



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: