my.navigateBackMiniProgram
Return to the previous Mini Program. Only used for when another Mini Program jumps back to the foregrounded Mini Program.
Sample Code
copy
my.navigateBackMiniProgram({
extraData:{
"data1":"test"
},
success: (res) => {
console.log(JSON.stringify(res))
},
fail: (res) => {
console.log(JSON.stringify(res))
}
});
Parameters
Field | Type | Mandatory | Description | Version |
extraData | Object | N | The extra data that needs to be returned to the target Mini Program,and the target Mini Program can get it in App.onLaunch() or App.onShow() | 1.0.0 |
success | function | N | the success callback function | 1.0.0 |
fail | function | N | the failed callback function | 1.0.0 |
complete | function | N | the complete callback function | 1.0.0 |