方法一:uni.hideHomeButton
注!!!
注意:当前页面必须是由uni.reLaunch方式跳转进来的,这个方法才能生效
onShow(() => {
uni.hideHomeButton()
})
这个方法如果成功了就不用试下面的方法了,个别机型不一定生效
方式二:在pages.json文件中,在相应的页面中设置"autoBackButton": false
方式三、对应的页面文件设置隐藏元素
document.querySelector('.uni-page-head-hd').style.display = 'none'