* h5页面必须是网络地址才能正常跳转-- 如: h5urlv = 'http://ftp6303437.host113./demo/new_file.html'; 小程序引用h5页面---(在小程序代码中实现 ) <web-view src="https://www./jqqd?type=1"></web-view> h5跳转小程序首页--(在h5代码中实现) <div class="mian" onclick="openSdaXcx()">返回到小程序页面</div> //必须引用此js <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"> </script> function openSdaXcx() { wx.miniProgram.switchTab({url: '/pages/index/index'}) //要跳转的页面 } |
|