zoukankan      html  css  js  c++  java
  • 转帖

    //左则菜单点击事件,重新刷新页面
    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 id="iframe'+node.id+'" name="iframe'+node.id+'" src="'+node.attributes.href+'" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>'  
                });  
                tabPanel.setActiveTab(node.id);  
    //点击左则菜单重新刷新页面  
    window.frames["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 id="iframe'+node.id+'" name="iframe'+node.id+'" src="'+node.attributes.href+'" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>' ,  
    listeners:{  
        activate:function(tab){  
            window.frames["iframe"+tab.id].location.reload();   
        }  
    }  
            });  
            tabPanel.setActiveTab(node.id);  
        }  
       });  

  • 相关阅读:
    需求的有序化和方案的系统化
    产品 增长 口碑传播
    私域流量的价值 大悦城微信营销:14万微信会员哪来的
    产品创新阶段关口细则
    业务关键数据指标
    TOB 增长
    医美品零售门店分析
    数据赋能饮品轻食
    [已读]你不知道的JavaScript(上卷)
    [已读]移动web手册
  • 原文地址:https://www.cnblogs.com/umlzhang/p/2229650.html
Copyright © 2011-2022 走看看