// Close弹窗关闭
var Close = function(type){
console.log(type);
if(typeof type =="undefined"){
return;
}
// 开始判断
switch(type){
case "self":
var index = .index
.close(index);
break;
case " Index":
var index = parent. .get Index(window.name);
.close(index);
break;
case "selfall":
.closeAll(); //疯狂模式,关闭所有层
break;
case "fatherall":
parent. .closeAll(); //疯狂模式,关闭所有层
break;
default:
break;
}
};
var Close2= function(index,type){
if(typeof type =="undefined"){
return;
}
// 开始判断
switch(type){
case "tips":
.closeAll('tips'); //关闭所有的tips层
break;
case "loading":
.closeAll('loading');
break;
case " ":
.closeAll(' ');
break;
case "dialog":
.closeAll('dialog');
break;
case "page":
.closeAll('page');
break;
default:
break;
}
};
var Close3 = function(o){
console.log(o.type);
if(typeof o.type =="undefined"){
return;
}
// 开始判断
switch(o.type){
case "self":
(!o.index)? .index:o.index
.close(o.index);
break;
case " Index":
//var index = parent. .get Index(window.name);
(!o.index)?parent. .get Index(window.name):o.index
.close(o.index);
break;
case "selfall":
.closeAll(); //疯狂模式,关闭所有层
break;
case "fatherall":
parent. .closeAll(); //疯狂模式,关闭所有层
break;
default:
break;
}
};
// 关闭刷新
var Reload = function(index,type){
if(typeof index =="undefined"||typeof type =="undefined"){
return;
}
// 开始判断
switch(type){
case "topreload":
parent.window.location.reload();
break;
case "reload":
window.location.reload();
break;
case "no":
close(" Index");//关闭弹窗
// window.location.reload();
break;
case "refreshTable":
close(" Index");
$('#tablelist').bootstrapTable('refresh');
break;
default:
break;
}
}
以上这篇 Close弹窗关闭刷新方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
继续阅读与本文标签相同的文章
-
项目管理利器:jira的安装和配置
2026-05-17栏目: 教程
-
共享商业&技术红利,阿里云SaaS加速器让天下没有难做的SaaS
2026-05-17栏目: 教程
-
Linux基础操作
2026-05-17栏目: 教程
-
藏不住了,这就是阿里 AI 的真正实力!
2026-05-17栏目: 教程
-
Hadoop机架感知(rack-aware)配置指南
2026-05-17栏目: 教程
