外部页面跳转?

小程序 文章 2020-09-07 16:21 439 0 全屏看文

AI助手支持GPT4.0

外部页面跳转?External page jump?

外部页面跳转?

在小程序内用web-view跳转外部H5页面。然后在这个H5页面进行操作后再次跳转到了另外一个外部H5页面。最后需要在第二个外部H5跳回小程序。怎么弄呢?

Jump to the external H5 page with web view in the applet. After the operation on this H5 page, it will jump to another external H5 page again. Finally, you need to jump back to the applet in the second external H5. How?

回答:

Admin²⁰²⁰:

第二个外部页面wx.miniProgram.navigateTo

如果跳回的是tabBar的页面的话就用

wx.miniProgram.switchTab


出错的话打印下错误日志排查错误

微喵网络:

第二个h5中使用wx.miniProgram.navigateTo

空白:我在第二个H5页面添加了一个点击事件,执行wx.miniProgram.navigateTo。但是在调试的时候没有反应。也导入了官方的那个js。
拾忆:

如果外部h5都是自己的,那就自己加代码返回小程序,如果是别人的,没办法。

-EOF-

AI助手支持GPT4.0