小程序内打开h5,h5回跳小程序 报错 ?

小程序 文章 2020-08-09 19:21 760 0 全屏看文

AI助手支持GPT4.0

小程序内打开h5,h5回跳小程序 报错 ?Open h5 in the applet, h5 jumps back to the applet, report an error?

小程序内打开h5,h5回跳小程序 报错 ?

uni框架

index.html引入

<script  src="https:/es.wx.qq.com/open/js/jweixin-1.3.2.js"> script>

页面使用

toWX(){

            uni.showToast({

                title: '点击了后退 888',

                icon: 'none'

            })

            wx.miniProgram.navigateTo({url: '/pages/index/index'})

            // wx.navigateTo({url: '/pages/applicant/applicant'})


            // wx.miniProgram.navigateBack()


        },

引入换成1.6也是同样的报错,有解决办法吗? 小程序用的是开发版

Uni framework index.html Introduce < script SRC=“ https:/es.wx.qq.com/open/js/jweixin-1.3.2.js "> script > page uses towx (){ uni.showToast ({Title: 'click back 888', Icon: 'none'}) wx.miniProgram.navigateTo ({url: '/pages/index/index'}) // wx.navigateTo ({url: '/pages/applicant/applicant'}) // wx.miniProgram.navigateBack () }, Introduction to replace 1.6 is the same error, there is a solution? The small program is the development version

回答:

Distance:

北落师门:

没有 我就纳闷了

stop eating:

报错在哪呢?怎么看不到

北落师门:老哥 你看上边的截图
stop eating:指的什么报错啊  没看到啊

-EOF-

AI助手支持GPT4.0