Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

微信小程序 api--FileSystemManager.readFile返回的结果不是ArrayBuffer

image

如图所示,发现小程序返回的结果不是ArrayBuffer,大家有碰到过这个情况吗?下图是官方文档的说明,返回值是string/ArrayBuffer

我刚好有个应用需要这个ArrayBuffer,一测试才发现这个问题,不知道大家都是怎么处理的;谢谢

image

这个是腾讯云官方的事例代码,我复制->粘贴过去微信开发者工具中运行提示不是ArrayBuffer这个情况,结果自己一测试是object类型的

image


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
下面这个是小程序开发者工具的提示错误信息

image


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...