码迷,mamicode.com
首页 > 其他好文 > 详细

easyUI树形节点点击和动态添加Tab

时间:2017-05-13 09:59:35      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:bin   iframe   tool   selected   border   idt   exists   close   UI   

var index = 0;  
            function addPanel(url,title){  
                if(!$(‘#tt‘).tabs(‘exists‘, title)){  
                    $(‘#tt‘).tabs(‘add‘,{  
                        title: title,  
                        content: ‘<iframe src="‘+url+‘" frameBorder="0" border="0"  style="width: 100%; height: 100%;"/>‘,  
                        closable: true  
                    });  
                }else{  
                    $(‘#tabs‘).tabs(‘select‘, title);  
                }  
            }  
            function removePanel(){  
                var tab = $(‘#tt‘).tabs(‘getSelected‘);  
                if (tab){  
                    var index = $(‘#tt‘).tabs(‘getTabIndex‘, tab);  
                    $(‘#tt‘).tabs(‘close‘, index);  
                }  
            }  

easyUI树形节点点击和动态添加Tab

标签:bin   iframe   tool   selected   border   idt   exists   close   UI   

原文地址:http://www.cnblogs.com/mfc-itblog/p/6847891.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!