同步的加载数据是这样的:
异步加载的代码如下:
1、html代码:
引用js:
css/zTreeStyle/zTreeStyle.css'/>" type="text/css">
3、后台提供数据的代码。自行组织符合ztree要求的字符串即可。
List menuList = dmBzYjwhbManager.yjZtree("2","2");
super.ajaxOut(JSONArray.fromObject(menuList).toString(), response);