急急急~我想了解一下在Web-View的组件中可以调用wx.getSetting和wx.onLocationChange接口吗?
wx.getSetting:https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/wx.getSetting.html
wx.onLocationChange:https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChange.html
不可以,小程序的api都不能使用,只能使用jssdk的
先在小程序上获取之后传递给webview的网页进行接收?
webview只可以使用jssdk中的接口
文档没有列出来的就是不可以的。
https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html