小程序如何访问webview的缓存(storage)?

小程序 文章 2022-01-06 11:20 1108 0 全屏看文

AI助手支持GPT4.0

小程序如何访问webview的缓存(storage)?How does the applet access the webview's cache (storage)?

小程序如何访问webview的缓存(storage)?

webview 的网页运用了缓存存放数据

现在需要 小程序页面获取webview的缓存数据

尝试 wx.getStorageInfo 发现返回为空,莫非不共用吗?

是否还有其他好的解决办法呢?webview 传递给小程序页面数据

The web page of WebView uses cache to store data. Now you need an applet page to get the cached data of WebView. Try Wx Getstorageinfo found that the returned value is null. Is it not shared? Is there any other good solution? Page data passed from WebView to applet

回答:

peng:

Reynold陈靖:

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

或者我觉得可以利用后端接口来进行通信

微喵网络:

不互通,没有办法

-EOF-

AI助手支持GPT4.0