小程序 跳轉web-view 點擊左上角返回須要點擊2次才能返回javascript
再html頁面引入js便可解決html
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.0.js"></script>java
<script>
window.onunload = function () {
wx.miniProgram.navigateBack({})
}
</script>
web
轉: https://blog.csdn.net/atu1986atu/article/details/99302642小程序