当前位置:网站首页>Layer pop-up layer closing problem
Layer pop-up layer closing problem
2022-07-07 12:50:00 【Full stack programmer webmaster】
When adding or modifying , Data needs to be submitted to the background for processing , At this time, the best state after adding successfully is to close the pop-up layer and refresh the data information of the list , I have always wanted to achieve this , But it has never been successful , Today, I decided to do a good job , I've seen it carefully layer After the help manual and consulting materials , With the following solutions :
One 、 Close the pop-up window
This is a layer The help manual given on the official website , The explanations were quite detailed
There are two cases :
1、 When the pop-up layer is not a new page , Get the index of the pop-up window directly , And then execute close Method
layer.close();
2、 When the pop-up window is a new page
var index=parent.layer.getFrameIndex(window.name);
parent.layer.close(index);
Two 、 Refresh the parent page after closing the pop-up window
for example : When adding users , Adding will pop up a new pop-up page , After adding success, there will be suggestive small alert, After clicking OK , Pop up page closes , And refresh the page data of the user list .
Just add this when closing the pop-up window window.parent.location.reload();// Refresh parent page
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/113462.html Link to the original text :https://javaforall.cn
边栏推荐
- Leetcode skimming: binary tree 27 (delete nodes in the binary search tree)
- 非分区表转换成分区表以及注意事项
- [Q&A]AttributeError: module ‘signal‘ has no attribute ‘SIGALRM‘
- Importance of database security
- 2022-07-07 Daily: Ian Goodfellow, the inventor of Gan, officially joined deepmind
- 免费手机号码归属地API查询接口
- 【统计学习方法】学习笔记——支持向量机(上)
- Day-19 IO stream
- Leetcode skimming: binary tree 23 (mode in binary search tree)
- 【从 0 开始学微服务】【01】什么是微服务
猜你喜欢

Vxlan static centralized gateway
![[deep learning] image multi label classification task, Baidu paddleclas](/img/dd/6f213a396e8bb240a6872e4c03afab.png)
[deep learning] image multi label classification task, Baidu paddleclas

Session

How to use PS link layer and shortcut keys, and how to do PS layer link

Static vxlan configuration

Multi row and multi column flex layout

Pule frog small 5D movie equipment | 5D movie dynamic movie experience hall | VR scenic area cinema equipment

Preorder, inorder and postorder traversal of binary tree

Decrypt gd32 MCU product family, how to choose the development board?

IPv6 experiment
随机推荐
Customize the web service configuration file
2022聚合工艺考试题模拟考试题库及在线模拟考试
opencv的四个函数
About IPSec
BGP actual network configuration
如何将 @Transactional 事务注解运用到炉火纯青?
leetcode刷题:二叉树23(二叉搜索树中的众数)
【从 0 开始学微服务】【03】初探微服务架构
Talk about four cluster schemes of redis cache, and their advantages and disadvantages
Visual stdio 2017 about the environment configuration of opencv4.1
[statistical learning method] learning notes - support vector machine (Part 2)
[statistical learning methods] learning notes - improvement methods
【深度学习】图像多标签分类任务,百度PaddleClas
Vxlan 静态集中网关
Image pixel read / write operation
【统计学习方法】学习笔记——逻辑斯谛回归和最大熵模型
ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型
What is an esp/msr partition and how to create an esp/msr partition
Connect to blog method, overload, recursion
[binary tree] delete points to form a forest