【发布时间】:2021-10-05 04:39:29
【问题描述】:
谁能告诉我为什么 IE11 在最后一行抛出错误 -
this.document = this.control.value;
const bytes =
this.documentService.base64toBytes(this.document.documentBlob.documentData,
this.document.documentDataFormat);
const file = new File(bytes, this.document.documentName, { type:
this.document.documentDataFormat });
这在 Chrome 和 Firefox 中都有效。IE 抛出对象错误 -
Object doesn't support this action.
【问题讨论】:
-
IE11 似乎不支持 caniuse.com/#search=file 的文件构造函数
-
糟糕!那么作为解决方法的建议是什么??
标签: angular internet-explorer-11