使用jstree,我使用下一个代码来触发点击,但是,我看不到默认点击事件,比如:点击时的蓝色背景,
这是我的代码:
<div id="wrap">
<div id="header">header</div>
<div id="main">
<div id="demo1" style="float:left;width:50%;">
<ul>
<li>
<a id='a' href="">aaa</a>
<!-- UL node only needed for children - omit if there are no children -->
<ul>
<li><a id="a_1" href="#"> bbb</a></li>
<li><a id="a_2" href="#"> ccc</a></li>
</ul>
</li>
</ul>
</div>
<div id="content">www</div>
</div>
</div>
<div id="footer">
footer
</div>
<script type="text/javascript">
$(function () {
$("#demo1").jstree({
"themes": {
"theme": "default",
"dots": true,
"icons": true,
"url": "themes/default/style.css"
},
"plugins" : [ "themes", "html_data" ]
});
$('#a_1').click(function(){
$('#content').html('bbb \'s content')
//return false;
})
$('#a_2').click(function(){
$('#content').html('ccc \'s content')
//return false;
})
});
</script>
我发现一些这样的代码:
.bind("create.jstree", function (e, data) {
alert(data)
})
它的意思是:当有人创建新文件时发出警报数据,
所以
jstree 有没有像“click.jstree”这样的方法?
谢谢