因为架构需要,有几个页面使用uni-app做了h5页面,在uniapp做的app里面使用webview嵌套。
根据官方的要求,我已经另外配置了h5项目的index.html
但是,运行以后在控制台甚至直接输出却存在uni.getEnv()等方法,h5页面就没法跟webview实现交互
大家有什么好的办法
uni.getEnv()
VM7154:1 Uncaught TypeError: uni.getEnv is not a function
at <anonymous>:1:5
10 个评论
要回复文章请先登录或注册
7***@qq.com
s***@163.com
s***@163.com
s***@163.com
3***@qq.com
许言琪
许言琪
DCloud_uni-ad_HDX
2***@qq.com (作者)
9***@qq.com