/*
* 跳转tabls
*/
function JumpPage(type,title,src){
var jq = top.jQuery;
var content = "<iframe id='mainFrame' frameborder='no' width='100%' height='100%' src='"+src+"'></iframe>";
if(type==0){
if (jq("#mainTabs").tabs('exists', title)){
jq("#mainTabs").tabs('select', title);
} else {
jq("#mainTabs").tabs('add',{
title:title,
content:content,
bodyCls: 'cos-overflow-hidden',
closable:true
});
}
}else{
jq("#mainTabs").tabs('close',title);
jq("#mainTabs").tabs('add',{
title:title,
content:content,
bodyCls: 'cos-overflow-hidden',
closable:true
});
}
}
转载于:https://www.cnblogs.com/ckaifeng/p/5025823.html