my.hideBackHome
Use this API to hide the home button in the top navigation bar.
Notes: When the mini-program page stack depth is 1, and the current page is neither the home page nor a tabBar page, a "Back Home" button will be displayed in the navigation bar by default. You can use my.hideBackHome to hide this button.
Supported types of mini programs: DSL
Sample code
copy
Page({
onShow() {
if (my.canIUse('hideBackHome')) {
my.hideBackHome();
}
},
});Parameters
Property | Type | Required | Description |
success | Function | No | Callback function upon call success. |
fail | Function | No | Callback function upon call failure. |
complete | Function | No | Callback function upon call completion (to be executed upon either call success or failure). |