easyui关闭所有tab

来源:互联网 发布:诺基亚6730c软件 编辑:程序博客网 时间:2024/05/22 04:55
  //关闭所有的tab  function closeAll(){      var tabs = $('#mytabs').tabs('tabs');      if(tabs.length>0){          for(var i=tabs.length-1;i>=0;i--){              var title = tabs[i].panel('options').title;              $('#mytabs').tabs('close', title);          }}  }
0 0