当前位置:网站首页>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
边栏推荐
- Three channel ultrasonic ranging system based on 51 single chip microcomputer (timer ranging)
- decast id.var measure. Var data splitting and merging
- Free and open source charging pile Internet of things cloud platform
- Timing role in the project
- Software testing weekly (issue 68): the best way to solve difficult problems is to wait and see the changes and push the boat with the current.
- mysql支持ip访问
- [Technical Specification]: how to write technical documents?
- SSM framework series - annotation development day2-2
- If you were a golang interviewer, what questions would you ask?
- async void 導致程序崩潰
猜你喜欢
Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)
Record a website for querying compatibility, string Replaceall() compatibility error
No idle servers? Import OVF image to quickly experience smartx super fusion community version
GIS practical tips (III) - how to add legend in CASS?
three.js文字模糊问题
There is no need to crack the markdown editing tool typora
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
mysql8安装
Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
Custom nail robot alarm
随机推荐
Navicat远程连接数据库 出现 1130- Host xxx is not allowed to connect to this MySQL server错误
Remote access to raspberry pie at home (Part 1)
AUTOSAR from introduction to mastery 100 lectures (81) - FIM of AUTOSAR Foundation
SSM framework series - JUnit unit test optimization day2-3
CGC: contractual graph clustering for community detection and tracking
世界读书日:我想推荐这几本书
SSM framework series - data source configuration day2-1
1130 - host XXX is not allowed to connect to this MySQL server error in Navicat remote connection database
(个人)最近项目开发后存在的系统漏洞整理
Go iris framework implements multi service Demo: start (listen to port 8084) service 2 through the interface in service 1 (listen to port 8083)
Importerror after tensorflow installation: DLL load failed: the specified module cannot be found, and the domestic installation is slow
SSM framework series - annotation development day2-2
CVPR 2022&NTIRE 2022|首个用于高光谱图像重建的 Transformer
Translation of attention in natural language processing
AUTOSAR from introduction to mastery 100 lectures (87) - key weapon of advanced EEA - AUTOSAR and DDS
软件测试周刊(第68期):解决棘手问题的最上乘方法是:静观其变,顺水推舟。
Design of STM32 multi-channel temperature measurement wireless transmission alarm system (industrial timing temperature measurement / engine room temperature timing detection, etc.)
Packet capturing and sorting -- TCP protocol [8]
【微信小程序】flex布局使用记录
8 websites that should be known for product development to enhance work experience