jQuery EasyUI:accordion的onselect事件

jQuery EasyUI中accordion又事件onselect。

API中这样写道:

名称

参数

说明

onSelect

title,index

当 panel 被选中时触发。

onAdd

title,index

当增加一个新 panel 时触发。

onBeforeRemove

title,index

当移除一个 panel 之前触发,返回 false 就取消移除动作。

onRemove

title,index

当移除一个 panel 时触发。

 

 

 

onselect的实现为:

<script>        
$(document).ready(function(){
    $('#westtree').accordion({

                onSelect: function (title) {

                      addTab("公司机构管理", '../../department/index');

                }

     });
})
</script>    

  

posted on 2013-06-29 15:57  wxlkeepmoving  阅读(2906)  评论(0)    收藏  举报