uni-app: page jump

uni.navigateTo: Jump to a new page without closing the current page.

uni.redirectTo: Close the current page and jump to a page in the application.

uni.reLaunch: Close all pages and open a page in the application.

uni.switchTab: Jump to the bottom tab page of the application.

uni.navigateBack: Return to the previous page or multi-level pages.

 example

uni.navigateTo({
  url: '/pages/detail/detail?id=123',  // 跳转的目标页面路径,其中包含了参数id=123
  success: function() {
    console.log('跳转成功');
  }
});

Guess you like

Origin blog.csdn.net/weixin_46001736/article/details/131834942