webview中提示 wx.downloadFile is not a function?

小程序 文章 2020-08-27 17:21 1772 0 全屏看文

AI助手支持GPT4.0

webview中提示 wx.downloadFile is not a function?The webview prompts wx.downloadFile is not a function?

webview中提示 wx.downloadFile is not a function?

版本库2.12.1

开发工具查看发现wx对象中未找到downloadFile方法,是webview不支持下载其他格式的文件吗?

The development tool of version library 2.12.1 found that the downloadfile method was not found in the Wx object. Does WebView not support downloading files in other formats?

回答:

จุ๊บ:

web-view 支持的 jssdk接口是没有这个的

https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html

没有肚腩!:webview中有可以下载其他格式文件的方式嘛?
Admin²⁰²⁰:

web-view支持的接口里没有wx.downloadFile

替代的有

downloadImage

downloadVoice

参考文档:

web-view | 微信开放文档

https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html

没有肚腩!:webview中有可以下载其他格式文件的方式嘛?
木有鱼丸:

自己想的?

-EOF-

AI助手支持GPT4.0