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);  
        }  
       });  

  • 相关阅读:
    线性变换
    施密特正交化
    春有它的记忆,秋有它的情怀
    最美的动作其实只需要嘴角上扬-微笑
    pomotime_v1.7.2 番茄软件完全教程
    NGUI 之 不为人知的 NGUITools
    Unity3D 开发 之 加载Android应用的环境
    Unity3D 开发 之 JDK安装与环境变量配置
    Tesseract 对验证码的识别原理和实现步骤
    sizeof_and_strlen 的区别
  • 原文地址:https://www.cnblogs.com/umlzhang/p/2229650.html
Copyright © 2011-2022 走看看