当前位置:网站首页>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'
},完美!!!
边栏推荐
- 保留一位小数和保留两位小数
- Group policy disables command prompt bypass
- What industries and scenarios can the easynvr/easygbs/easycvr platform developed by tsingsee green rhino video be used in?
- Experience of Shenzhou computer
- Mysql database recovery case sharing
- C code writing specification
- (cve-2020-11978) command injection vulnerability recurrence in airflow DAG [vulhub range]
- 《canvas》之第3章 曲线图形
- 自动化测试的生命周期是什么?
- 光照使用的简单总结
猜你喜欢

语料库数据处理个案实例(读取多个文本文件、读取一个文件夹下面指定的多个文件、解码错误、读取多个子文件夹文本、多个文件批量改名)

屏幕截图推荐—Snipaste

【Django中运行scrapy框架,并将数据存入数据库】

【008】表格数据逐行筛选,跳出for循环及跳过本次循环思路_#VBA

Analog display of the module taking software verifies the correctness of the module taking data, and reversely converts the bin file of the lattice array to display

Shader 常用函数
![[tips] use the deep learning toolbox of MATLAB deepnetworkdesigner to quickly design](/img/74/f615191715a9ac58a8546f8d1e8f8d.png)
[tips] use the deep learning toolbox of MATLAB deepnetworkdesigner to quickly design
![[vulhub shooting range]] ZABBIX SQL injection (cve-2016-10134) vulnerability recurrence](/img/c5/f548223666d7379a7d4aaed2953587.png)
[vulhub shooting range]] ZABBIX SQL injection (cve-2016-10134) vulnerability recurrence

Camera calibration (calibration purpose and principle)

免费ICP域名备案查接口
随机推荐
图形技术之管线概念
First acquaintance with JUC - day01
Buuctf misc grab from the doll
New features of PHP: bytecode cache and built-in server
MaxCompute远程连接,上传、下载数据文件操作
C# Lambda
Ultra wideband pulse positioning scheme, UWB precise positioning technology, wireless indoor positioning application
Étalonnage de la caméra (objectif et principe d'étalonnage)
Only two lines are displayed, and the excess part is displayed with Ellipsis
Counter attack from outsourcing to big factories! Android has been developed for 5 years, and after a year of dormancy, it has tried to become an offer harvester. Tencent has a fixed salary of 20*15
LeetCode 207:课程表(拓扑排序判断是否成环)
Event related | reveal how Ti-One's support ability for large-scale events is developed
How to realize high stability and high concurrency of live video streaming transmission and viewing?
Commandes de console communes UE
MFC multithreaded semaphore csemaphore critical area and mutually exclusive events
向量操作与坐标转换相关方法
Phonics
Oracle-高级SQL限定查询
RDD basic knowledge points
BOM笔记