标签:bin iframe tool selected border idt exists close UI
var index = 0; function addPanel(url,title){ if(!$(‘#tt‘).tabs(‘exists‘, title)){ $(‘#tt‘).tabs(‘add‘,{ title: title, content: ‘<iframe src="‘+url+‘" frameBorder="0" border="0" style="width: 100%; height: 100%;"/>‘, closable: true }); }else{ $(‘#tabs‘).tabs(‘select‘, title); } } function removePanel(){ var tab = $(‘#tt‘).tabs(‘getSelected‘); if (tab){ var index = $(‘#tt‘).tabs(‘getTabIndex‘, tab); $(‘#tt‘).tabs(‘close‘, index); } }
标签:bin iframe tool selected border idt exists close UI
原文地址:http://www.cnblogs.com/mfc-itblog/p/6847891.html