流动代码
<script type="text/javascript">
$(document).ready(function() {
$("#demo1").bind('loaded.jstree', function(e, data) {
// invoked after jstree has loaded
$('#demo1 ul>li').addClass('topMenu');
$('#demo1 ul>li').css('background-image','/Images/SgTLink_After_Login_07.png');
}).jstree({
"json_data": {
"ajax": {
"type": "POST",
"dataType": "json",
"contentType": "application/json;",
"url": "/Desktop/MenusFunc.aspx/GetAllNode",
"data": function(node) {
return '{ "operation" : "get_children"}';
},
"success": function(retval) {
return retval.d;
}
}
},
"plugins": ["themes", "json_data"]
});
});
</script>
我得到了每个treeNode的图像并将其保存在db中,我该如何更改它?thx 对不起,如果这个问题看起来很基本,但我发现在尝试做基本事情时很难遵循文档。:)