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

Easyui Tabs 添加怎么添加。

时间:2017-05-25 01:20:16      阅读:156      评论:0      收藏:0      [点我收藏+]

标签:function   ons   order   get   ddp   height   刷新   current   panel   

function addPanel(url, title) {

    if ($("#mainTabs").tabs("exists", title)) {

        $("#mainTabs").tabs("select", title);

        //var tab = $(‘#mainTabs‘).tabs(‘getSelected‘);  // 获取选择的面板tab.panel(‘refresh‘, ‘get_content.php‘);

        //刷新当前选择页面

        var current_tab = $(‘#mainTabs‘).tabs(‘getSelected‘);

        $(‘#mainTabs‘).tabs(‘update‘, {

            tab: current_tab,

            options: {

                content: ‘<iframe frameborder="0" height="100%"  width="100%" src="‘ + url + ‘" style="overflow:hidden" ></iframe>‘

            }

        });

    }

    else {

 

        $(‘#mainTabs‘).tabs(‘add‘, {

            title: title,

            content: ‘<iframe frameborder="0" height="100%"  width="100%" src="‘ + url + ‘" style="overflow:hidden" ></iframe>‘,

            closable: true

        });

    }

}

Easyui Tabs 添加怎么添加。

标签:function   ons   order   get   ddp   height   刷新   current   panel   

原文地址:http://www.cnblogs.com/duanyuerui/p/6901647.html

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