h5配置里面配置下index 不懂的话点 后面的参考 看官方提示
然后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
})