uniapp webview 跳回小程序 填坑
h5配置里面配置下index 不懂的话点 后面的参考 看官方提示
![](https://img2020.cnblogs.com/blog/818001/202003/818001-20200327014436563-417725327.png)
然后index.html里面引入微信的jssdk
<script src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js" type="text/javascript" charset="utf-8"></script>
//wx.换成jWeixin.
jWeixin.miniProgram.getEnv(function(res) {
jWeixin.miniProgram.reLaunch({
url: '/pages/add/add'
})
})
x
1
//wx.换成jWeixin.
2
3
jWeixin.miniProgram.getEnv(function(res) {
4
jWeixin.miniProgram.reLaunch({
5
url: '/pages/add/add'
6
})
7
})