当前位置:网站首页>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
边栏推荐
- ICLR 2022 | 基于对抗自注意力机制的预训练语言模型
- 有什么类方法或是函数可以查看某个项目的Laravel版本的?
- How to use PS link layer and shortcut keys, and how to do PS layer link
- Financial data acquisition (III) when a crawler encounters a web page that needs to scroll with the mouse wheel to refresh the data (nanny level tutorial)
- 什么是ESP/MSR 分区,如何建立ESP/MSR 分区
- [疑难杂症]pip运行突然出现ModuleNotFoundError: No module named ‘pip‘
- Several ways to clear floating
- 2022聚合工艺考试题模拟考试题库及在线模拟考试
- [statistical learning methods] learning notes - Chapter 5: Decision Tree
- Day-15 common APIs and exception mechanisms
猜你喜欢

Static vxlan configuration

【PyTorch实战】用PyTorch实现基于神经网络的图像风格迁移

ICLR 2022 | pre training language model based on anti self attention mechanism

Polymorphism, final, etc

About IPSec

2022a special equipment related management (boiler, pressure vessel and pressure pipeline) simulated examination question bank simulated examination platform operation

ACL 2022 | 序列标注的小样本NER:融合标签语义的双塔BERT模型

数据库安全的重要性

3D content generation based on nerf

leetcode刷题:二叉树25(二叉搜索树的最近公共祖先)
随机推荐
xshell评估期已过怎么办
leetcode刷题:二叉树24(二叉树的最近公共祖先)
Using stack to convert binary to decimal
Guangzhou held work safety conference
普乐蛙小型5d电影设备|5d电影动感电影体验馆|VR景区影院设备
如何将 @Transactional 事务注解运用到炉火纯青?
密码学系列之:在线证书状态协议OCSP详解
idm服务器响应显示您没有权限下载解决教程
利用栈来实现二进制转化为十进制
Leetcode skimming: binary tree 21 (verifying binary search tree)
【统计学习方法】学习笔记——提升方法
Day-19 IO stream
BGP actual network configuration
The IDM server response shows that you do not have permission to download the solution tutorial
怎样重置火狐浏览器
【统计学习方法】学习笔记——第五章:决策树
【从 0 开始学微服务】【02】从单体应用走向服务化
Polymorphism, final, etc
处理链中断后如何继续/子链出错removed from scheduling
Realize a simple version of array by yourself from