当前位置:网站首页>Mui close other pages and keep only the first page
Mui close other pages and keep only the first page
2022-04-23 13:05:00 【It's never too late to be alone】
This can be used for mui When opening many sub pages , Go straight back to the front page …
var wvs = plus.webview.all(); // All window objects
var launch = plus.webview.getLaunchWebview(); // Home window object
var self = plus.webview.currentWebview(); // The current window object
var appid = plus.webview.getLaunchWebview().id // Home window id
for(var i = 0, len = wvs.length; i < len; i++) {
// Home page and current window object , Don't shut down ;
if(wvs[i].id == appid || wvs[i].id == 'nav_footer.html' || wvs[i].id == 'index.html' || wvs[i].id == 'check_content.html' || wvs[i].id == 'my.html' || wvs[i].id == 'HBuilder') {
// Select a page and leave it open wvs[i].id === localStorage.homeWebId
continue;
} else {
wvs[i].close('none'); // Close the middle window object , To prevent flashing , Do not use animation effects ;
}
} // here , The window object is only the home page and the current window , Close the current window directly ;
版权声明
本文为[It's never too late to be alone]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231303466296.html
边栏推荐
- Subscribe to Alibaba demo send business messages
- decast id.var measure.var数据拆分与合并
- AUTOSAR from introduction to mastery 100 lectures (86) - 2F of UDS service foundation
- STD:: shared of smart pointer_ ptr、std::unique_ ptr
- SSM framework series - annotation development day2-2
- 教你快速开发一个 狼人杀微信小程序(附源码)
- 7_Addmodule和基因加和法add 得到的细胞类型打分在空间上空转对比
- The quill editor image zooms, multiple rich text boxes are used on one page, and the quill editor upload image address is the server address
- MySQL -- 16. Data structure of index
- Kernel error: no rule to make target 'Debian / canonical certs pem‘, needed by ‘certs/x509_ certificate_ list‘
猜你喜欢

Install nngraph

nodeJs + websocket 循环小案例

Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow

STM32 is connected to the motor drive, the DuPont line supplies power, and then the back burning problem

Servlet监听器&过滤器介绍

Huawei cloud MVP email
![[untitled] PID control TT encoder motor](/img/ce/942a0b87994699f73da215e7cad2a1.png)
[untitled] PID control TT encoder motor

Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy

100 GIS practical application cases (52) - how to keep the number of rows and columns consistent and aligned when cutting grids with grids in ArcGIS?

About the 'enum' enumeration type and structure.
随机推荐
STM32 tracking based on open MV
MySQL —— 16、索引的数据结构
Kernel error: no rule to make target 'Debian / canonical certs pem‘, needed by ‘certs/x509_ certificate_ list‘
If you were a golang interviewer, what questions would you ask?
100 GIS practical application cases (51) - a method for calculating the hourly spatial average of NC files according to the specified range in ArcGIS
AUTOSAR from introduction to mastery 100 lectures (51) - AUTOSAR network management
AUTOSAR from introduction to mastery 100 lectures (87) - key weapon of advanced EEA - AUTOSAR and DDS
22. Bracket generation
51 single chip microcomputer stepping motor control system based on LabVIEW upper computer (upper computer code + lower computer source code + ad schematic + 51 complete development environment)
GIS practical tips (III) - how to add legend in CASS?
mui 微信支付 排坑
Record some NPM related problems (messy records)
hbuilderx + uniapp 打包ipa提交App store踩坑记
产品开发都应该知道的8个网站,增强工作体验
Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
PC starts multiple wechat at one time
Recovering data with MySQL binlog
Hanlp word splitter (via spark)
Softbank vision fund entered the Web3 security industry and led a new round of investment of US $60 million in certik
1130 - host XXX is not allowed to connect to this MySQL server error in Navicat remote connection database