* h5頁(yè)面必須是網(wǎng)絡(luò)地址才能正常跳轉(zhuǎn)-- 如: h5urlv = 'http://ftp6303437.host113./demo/new_file.html'; 小程序引用h5頁(yè)面---(在小程序代碼中實(shí)現(xiàn) ) <web-view src="https://www./jqqd?type=1"></web-view> h5跳轉(zhuǎn)小程序首頁(yè)--(在h5代碼中實(shí)現(xiàn)) <div class="mian" onclick="openSdaXcx()">返回到小程序頁(yè)面</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'}) //要跳轉(zhuǎn)的頁(yè)面 } |
|
來(lái)自: webpengli > 《web學(xué)習(xí)記錄》