当前位置:网站首页>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
边栏推荐
- jmeter操作redis
- mui 微信支付 排坑
- (1) Openjuterpyrab comparison scheme
- Navicat远程连接数据库 出现 1130- Host xxx is not allowed to connect to this MySQL server错误
- Learning materials
- Softbank vision fund entered the Web3 security industry and led a new round of investment of US $60 million in certik
- Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy
- Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
- Free and open source intelligent charging pile SaaS cloud platform of Internet of things
- decast id.var measure.var数据拆分与合并
猜你喜欢

Softbank vision fund entered the Web3 security industry and led a new round of investment of US $60 million in certik

PC starts multiple wechat at one time

GIS practical tips (III) - how to add legend in CASS?

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?

Homomorphic encryption technology learning

Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)

CVPR 2022&NTIRE 2022|首个用于高光谱图像重建的 Transformer

【微信小程序】flex布局使用记录

World Book Day: I'd like to recommend these books

Install nngraph
随机推荐
STD:: shared of smart pointer_ ptr、std::unique_ ptr
8 websites that should be known for product development to enhance work experience
Start mqbroker CMD failure resolution
Free and open source intelligent charging pile SaaS cloud platform of Internet of things
100 lectures on practical application cases of Excel (VIII) - report connection function of Excel
4.22 study record (you only did water problems in one day, didn't you)
SQL exercise question 1
Important knowledge of transport layer (interview, retest, final)
JMeter operation redis
8086 of x86 architecture
STM32 is connected to the motor drive, the DuPont line supplies power, and then the back burning problem
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
Use compressorjs to compress pictures, optimize functions, and compress pictures in all formats
mui 微信支付 排坑
V-model binding value in El select, data echo only displays value, not label
Softbank vision fund entered the Web3 security industry and led a new round of investment of US $60 million in certik
100 GIS practical application cases (53) - making three-dimensional image map as the base map of urban spatial pattern analysis
Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)
Important knowledge of network layer (interview, reexamination, term end)
7_ The cell type scores obtained by addmodule and gene addition method are compared in space