mini-tabs多个div并列,并可隐藏某个div

<div  class="mini-tabs" activeIndex="0" id="tabs">
  <div title="title1"></div>
  <div title="title1"></div>
  <div name="xian" title="title1"></div>
</div>
function onEdit(id){
  var tabs = mini.get("tabs");
  var tab = tabs.getTab("xian");
  tabs.updateTab(tab, { visible: false });//false隐藏,true显现
}

 

posted @ 2017-08-30 11:04  易之盛  阅读(394)  评论(0编辑  收藏  举报