当前位置:网站首页>uniapp uni-app H5 端如何取消 返回按钮的显示 autoBackButton不生效
uniapp uni-app H5 端如何取消 返回按钮的显示 autoBackButton不生效
2022-06-24 06:46:00 【张小浪】
uniapp uni-app H5 端如何取消 返回按钮的显示 autoBackButton不生效
修改 pages.json "autoBackButton": false 不生效
pages.json 中配置 autoBackButton 是不生效的,因为这个属性只支持程序方面, H5 不支持这个属性的设置。
如下:不生效
实现
H5 端咱有自己的方法呀,所有的元素都是可控的,直接用浏览器端的方法把它隐藏就好了。
在 mounted 这添加如下一句就好了,意思是在页面渲染完成后,找到返回按钮,把它隐藏。
mounted(){
document.querySelector('.uni-page-head-hd').style.display = 'none'
},完美!!!
边栏推荐
- [frame rate doubling] development and implementation of FPGA based video frame rate doubling system Verilog
- What industries and scenarios can the easynvr/easygbs/easycvr platform developed by tsingsee green rhino video be used in?
- A penetration test of c/s Architecture - Request encryption, decryption and test
- 后疫情时代下,家庭服务机器人行业才刚启航
- Global and Chinese markets for maritime transport of perishable goods 2022-2028: Research Report on technology, participants, trends, market size and share
- Obtain the package name, application name, icon, etc. of the uninstalled APK through packagemanager. There is a small message
- 阿里云全链路数据治理
- 科一易错点
- 语料库数据处理个案实例(读取多个文本文件、读取一个文件夹下面指定的多个文件、解码错误、读取多个子文件夹文本、多个文件批量改名)
- [learn FPGA programming from scratch -41]: vision chapter - Moore's era and Moore's law and the arrival of the post Moore Era
猜你喜欢
![[frame rate doubling] development and implementation of FPGA based video frame rate doubling system Verilog](/img/38/92486c92557e6e5a10a362eb2b7bdf.png)
[frame rate doubling] development and implementation of FPGA based video frame rate doubling system Verilog

语料库数据处理个案实例(读取多个文本文件、读取一个文件夹下面指定的多个文件、解码错误、读取多个子文件夹文本、多个文件批量改名)
![buuctf misc [UTCTF2020]docx](/img/e4/e160f704d6aa754e85056840e14bd2.png)
buuctf misc [UTCTF2020]docx
![[mrctf2020] thousand layer routine](/img/8e/d7b6e7025b87ea0f43a6123760a113.png)
[mrctf2020] thousand layer routine

【NILM】非入侵式负荷分解模块nilmtk安装教程

Description of module data serial number positioning area code positioning refers to GBK code

Session & cookie details

Win11 points how to divide disks? How to divide disks in win11 system?

How to connect the Bluetooth headset to the computer and how to connect the win10 computer to the Bluetooth headset

2022年PMP项目管理考试敏捷知识点(1)
随机推荐
Experience of Shenzhou computer
C# Lambda
[equalizer] bit error rate performance comparison simulation of LS equalizer, def equalizer and LMMSE equalizer
[learn FPGA programming from scratch -41]: vision chapter - Moore's era and Moore's law and the arrival of the post Moore Era
Win10 build webservice
Continue to have a fever. Try the asynchronous operation of dart language. The efficiency is increased by 500%
2.1.1 QML grammar foundation I
向量操作与坐标转换相关方法
Q & A on cloud development cloudbase hot issues of "Huage youyue phase I"
Overview of C program operation mechanism
How to open the soft keyboard in the computer, and how to open the soft keyboard in win10
自动化测试的生命周期是什么?
Explain the input attribute in PHP (hide the read-only restriction)
First acquaintance with JUC - day01
(cve-2020-11978) command injection vulnerability recurrence in airflow DAG [vulhub range]
Camera calibration (calibration purpose and principle)
pair类备注
Shell script for MySQL real-time synchronization of binlog
timer使用备注
RDD basic knowledge points