用的是extjs左侧是在js文件里形成的一个treePanel
n = center.add({
'id': node.id,
'title': node.text,
closable: true,
html: '<iframe id="reporter-iframe" src=\'' + node.attributes.url + '\' frameborder="0" scrolling="auto" style="border:0px none;height:100%; width:100%;"></iframe>'
})
center.setActiveTab(n);这是打开新的aspx页面
在这个新的页面里,有个按钮, <input type='button' value='打开新的选项卡' onclick="open()"/>
function open(){
if(这个选项卡已存在){
激活此选项卡
}
else
{
创建这个选项卡
}
}
该怎样实现
被副总骂死了,大家帮帮帮忙吧