Applet page jump micro-channel mode

  • 1 Use the navigator label


    url: the address of the page to jump

    open-type: jump method

    open-type = "navigate" is equivalent to the js wx.navigateTo, paths need to jump to a page of the application of non-tabBar
     
    open-type = "redirect" is equivalent to the js wx.redirectTo, the applications need to jump Page path of the non-tabBar
     
    open-type = "switchTab" is equivalent to the js wx.switchTab, tabBar need to jump to the page, and close all other non-tabBar page

  • 2 binding events, js trigger

     
      binding to the click event ① wxml element



       
    ② js set the page jump address 

     


     

     

Guess you like

Origin www.cnblogs.com/wsclight/p/11356547.html