EasyUI tab 关闭

时间:13-12-03 栏目:EasyUI 作者:zongyan86 评论:0 点击: 3,200 次

 <script>
        function closetab(subtitle) {
            top.$(
'#tabs').tabs('close', subtitle);
        }
        function CloseCurrentTab() {
           
var tabname = '';
           
var p = $(parent.document.getElementById("tabs")).find("li");
            $.each(p, function (i, val) {
               
if (val.className == "tabs-selected") {
                    tabname
= $($(val).find("span")[0]).text();
                }
            });
            closetab(tabname);
        }
   
</script>

web开发  转自http://www.cnblogs.com/AaronYang/p/3443666.html



声明: 本文由( zongyan86 )原创编译,转载请保留链接: EasyUI tab 关闭

关注我们