1.引入文件
<script type="text/javascript"
src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath}/js/ztree/jquery.ztree.core-3.5.js"></script>
<script type="text/javascript"
src="${pageContext.request.contextPath}/js/ztree/jquery.ztree.excheck-3.5.js"></script>
2.从后台取数据在前台页面加载
<script type="text/javascript">
//初始化通过异步加载权限树数据
$(function() {
$.ajax({
url : "privlegeCheckList?roleId=${roleId}",
type : "post",
dataType : "json",
suc