📜  窗口打开 blob - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:19.436000             🧑  作者: Mango

代码示例1
$http.post('/fetchBlobURL',{myParams}, {responseType: 'arraybuffer'})
   .success(function (data) {
       var file = new Blob([data], {type: 'application/pdf'});
       var fileURL = URL.createObjectURL(file);
       window.open(fileURL);
});