就是一些JS 代码:
页面单击事件:
<li><span class=v><a href="javascript:void(0)" onclick="manager()">矩阵管理</a></span> </li>执行:
function manager(){
$("#tt").load("tree_data1.json");
}UI:
<div id="p" class="easyui-panel"collapsible="true" fit="false" maximizable="true" align="left" closable="true" style="width:240px;height:780px;padding:10px;">
<ul id="tt" url="tree_data.json" animate="true"></ul>
</div>就那一段。解析过来的是源码。
我要的是树形结构的json数据。
在页面重新加载的时候执行了 <ul id="tt" url="tree_data.json" animate="true"></ul> 在执行单击事件就是源码了!小弟真没撤了。。
页面单击事件:
<li><span class=v><a href="javascript:void(0)" onclick="manager()">矩阵管理</a></span> </li>执行:
function manager(){
$("#tt").load("tree_data1.json");
}UI:
<div id="p" class="easyui-panel"collapsible="true" fit="false" maximizable="true" align="left" closable="true" style="width:240px;height:780px;padding:10px;">
<ul id="tt" url="tree_data.json" animate="true"></ul>
</div>就那一段。解析过来的是源码。
我要的是树形结构的json数据。
在页面重新加载的时候执行了 <ul id="tt" url="tree_data.json" animate="true"></ul> 在执行单击事件就是源码了!小弟真没撤了。。
解决方案 »
- 熟悉Struts2的过来看一下
- java 数据库 和 tomcat的问题,急急急 在线等!
- Servlet 的Filter实现中将页面前转时,如何让Browser地址栏中的地址也进行更改
- 请教:怎样让自己的程序也有license?
- ireport问题
- The method registerOutParameter(String, int) is undefined for the type PreparedStatement
- servlet如何调用bean
- 关于分页代码中,按下一页出现错误提示“无效的游标状态”
- MyEclipse连sql2005出错,帮帮我呀~~~~~~~~~~~~
- 关于session会话
- 请问jsp不通过提交表单怎么传值?
- js从数据库中读取数据展示在jsp页面在谷歌浏览器中无法正常显示
试试 $("#tt").tree({ url: "tree_data1.json" }); 或者 $("#tt").reload();