小程序web-view使用

微信 web-view的使用:

<web-view src="https://www.xxxxxxxxx.com/index.html" />

从h5页面跳到小程序的其他页面:

<!-- html代码中引入JS SDK -->
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.0.js"></script>
<script>
// 跳转到小程序的一个页面
wx.miniProgram.navigateTo({url: '/path/to/page'})
</script>

小程序 web-view 如何给外链接的 h5 页面传递参数和值

<web-view src="{{url}}?id={{id}}&token={{token}}&member={{member}}&paused={{paused}}" ></web-view>

猜你喜欢

转载自blog.csdn.net/Rob_gao/article/details/83857381