如何在jsp页面上加载jqueryeasyui树图
1个回答
展开全部
首选在jsp页面中引入相关的js
<link rel="stylesheet" type="text/css" href="<%=path %>/css/jquery_easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/css/jquery_easyui/themes/icon.css">
<script type="text/javascript" src="<%=path %>/js/jquery_easyui/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/jquery_easyui/jquery.easyui.min.js"></script>
添加script
?
1
2
3
4
5
6
7
8
9
10
11
<script>
$(function(){
$('#tt2').tree({
checkbox: false,
url: '<%=path%>/formconfig/loadWfNodes.do',
onBeforeExpand: function(node){
$('#tt2').tree('options').url = '<%=path%>/formconfig/loadWfNodes.do?wfId='+node.id;
}
});
});
<link rel="stylesheet" type="text/css" href="<%=path %>/css/jquery_easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/css/jquery_easyui/themes/icon.css">
<script type="text/javascript" src="<%=path %>/js/jquery_easyui/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<%=path %>/js/jquery_easyui/jquery.easyui.min.js"></script>
添加script
?
1
2
3
4
5
6
7
8
9
10
11
<script>
$(function(){
$('#tt2').tree({
checkbox: false,
url: '<%=path%>/formconfig/loadWfNodes.do',
onBeforeExpand: function(node){
$('#tt2').tree('options').url = '<%=path%>/formconfig/loadWfNodes.do?wfId='+node.id;
}
});
});
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询