my.navigateTo

Maintain the current page and jump to the specified page within the application. Use my.navigateBack to return to the original page.

Note: The maximum page depth is 10. In other words, the navigateTo can be called 10 times at most.

Sample Code

copy
my.navigateTo({
  url: 'new_page?count=100'
})  

// test.js
Page({
  onLoad(query){
    my.alert({
      content: JSON.stringify(query),
    });
  }
})

Parameters

NameTypeMandatoryDescription
urlStringYesThe application for thejumping does not include the destination page path of the tabBar. The path can be followed by parameters. Rules for the parameters: The path and parameter are separated with ?, the parameter key and the parameter value are connected with =, and different parameters must be separated with &, such as path?key1=value1&key2=value2
successFunctionNoCallback function upon call success
failFunctionNoCallback function upon call failure
completeFunctionNoCallback function upon call completion (to be executed upon either call success or failure)