function addTab(subtitle,url,icon){.
//下面开始判断
if(!$('#tabs').tabs('exists',subtitle)){
//不存在则add
$('#tabs').tabs('add',{
title:subtitle,
content:createFrame(url),
closable:true,
icon:icon
});
//存在则改为选中状态
}else{
$('#tabs').tabs('select',subtitle);
}
//tabClose();
}
function createFrame(url)
{
var s = '<iframe scrolling="auto" frameborder="0" src="'+url+'" style="width:100%;height:100%;"></iframe>';
return s;
}