gpt4 book ai didi

javascript - IE 和 Safari 中的 File() 构造函数

转载 作者:行者123 更新时间:2023-12-02 16:06:00 24 4
gpt4 key购买 nike

IE 和 Safari 不支持 File() 构造函数。 CanIUse

Angular/JavaScript 中有一个很好的解决方案吗?

var file = new File(byteArrays, tempfilename, { type: contentType });

我可以通过 IE 和 Safari 支持的其他方式创建该文件吗?

最佳答案

如果您绝对想要或需要使用文件 API,可以使用 mOxie polyfillCanIUse 建议.

关于javascript - IE 和 Safari 中的 File() 构造函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30727052/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com