//左则菜单点击事件,重新刷新页面
Java代码
    tree.on('click', function(node, e){  
        if(node.isLeaf()){  
            e.stopEvent();  
            //var autoLoad = {url:node.attributes.href};  
            tabPanel.add({  
             title:node.attributes.text,  
             id: node.id,  
             closable:true,  
             minHeight:500,     
                autoScroll:false,     
                frame:true,     
                html:'<iframe +node.id].location.reload();   
        }  
    });  

//Tabpanel上点击标签重新刷新页面
Java代码
    tree.on('click', function(node, e){  
    if(node.isLeaf()){  
        e.stopEvent();  
        //var autoLoad = {url:node.attributes.href};  
        tabPanel.add({  
            title:node.attributes.text,  
            id: node.id,  
            closable:true,  
            minHeight:500,     
                autoScroll:false,     
                frame:true,     
                html:'<iframe +tab.id].location.reload();   
    }  
}  
        });  
        tabPanel.setActiveTab(node.id);  
    }  
   });  

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
猜你喜欢
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-03-08
  • 2021-09-05
  • 2021-05-17
相关资源
相似解决方案