//添加
$tab.tabs('addIframeTab', {
//tab参数为一对象,其属性同于原生add方法参数
tab: {
title: title:
closable: true,
icon: icon,
tools: [{
iconCls: 'icon-mini-refresh',
handler: function (e) {
var title = $(e.target).parent().parent().text();
$tab.tabs('updateIframeTab', { 'which': title });
}
}]
},
iframe: { src: url, message: "正在加载请稍后..." }
});
$tab.tabs('addEventParam');
//刷新
$tab.tabs('select', title
$tab.tabs('updateIframeTab', { 'which': subtitle, iframe: { message: "正在加载请稍后..." } });