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>