json tree代码demo

时间:2015-04-13 17:48:35
【文件属性】:
文件名称:json tree代码demo
文件大小:2.09MB
文件格式:RAR
更新时间:2015-04-13 17:48:35
json [removed] var selectNodeId='3'; var selectNodeType; jQuery(function(){ jQuery.ajaxSetup({cache:false}); $.getJSON("getSiteTreeAction.action", function(json){ // alert(json.jsonList.length); var strjson = eval('('+json.treeJsonStr+')'); $('#typetree').tree({ checkbox: false, data:json.jsonList, //data:strjson, onClick:function(node){ $(this).tree('toggle', node.target); jQuery.ajaxSetup({cache:false}); selectNodeId = node.id; selectNodeType = node.attributes.type; jQuery('#content').empty(); jQuery('
').appendTo('#content'); loadGrid(); //***************************************** // alert('you dbclick '+node.attributes.type); } }); }); }); function reload(){ $('#typetree').tree('reload'); }

网友评论

  • 很好的例子,可以参考,谢谢