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

updateEasyuiTab

时间:2016-12-15 11:15:03      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:html   auto   src   log   lin   ane   content   height   bin   

    //tabContainer:easyui-tabs或者id,title名称
    this.updateEasyuiTab = function (tabContainer, outTitle, outUrl) {
        var tabs = $("#tabs").tabs().tabs(tabs);
        var title = "";
        for (var i = 0; i < tabs.length; i++) {
            tabs[i].panel(options).tab.unbind().bind(click, { index: i }, function (e) {
                title = ($(this).find(".tabs-title").html());
                var tab = tabs[1];
                var url = outUrl;// "TranForwardDetailManage.aspx?Id=" + $("#txt_Id_").val();
                var src = <iframe name="indextab" scrolling="auto" frameborder="0" src= + url +  style="width:100%;height:100%;"></iframe>;
                if (title != outTitle) {
                    return;
                }
                $("#tabs").tabs(update, {
                    tab: tab,
                    options: {
                        content: src
                    }
                });
                tab.panel(refresh);
            });
        }
    }

 

updateEasyuiTab

标签:html   auto   src   log   lin   ane   content   height   bin   

原文地址:http://www.cnblogs.com/kexb/p/6182395.html

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