jquery simple tree 怎么 添加 删除 拖动节点?
解决方案 »
- 开个java webservice的板块吧,寻支持
- Hibernate查询问题。
- 用jnative调用关联授权文件的dll,加载授权文件失败
- hibernate查寻单个数据的问题
- getHibernateTemplate()总是空怎么办
- 晕了啊,weblogic9怎么不识别context-root呢?
- struts1高手来帮帮忙啊,关于action的
- 远程SessionBean调本地SessionBean,居然在部署web层组件时报错
- ★★★★★★★★已经读到了XML文件,但是显示XML文件中的具体的数据呢? ★★★★★★★★
- 创建jpa项目出以下错误, 用的application.yml配置文件,
- 急~ FileInputStream 拒绝访问
- Hibernate在项目启动时自动建表
var simpleTreeCollection;
var name="";
var id="";
$(document).ready(function(){ simpleTreeCollection = $('.simpleTree').simpleTree({
autoclose: true,
afterClick:function(node){
//alert("text-"+$('span:first',node).text()+$('span:first',node).attr("pid"));
},
afterDblClick:function(node){
alert("text-"+$('span:first',node).text());
},
afterMove:function(destination, source, pos){
//alert("destination---"+destination.attr('id')+" source---"+source.attr('id')+" pos---"+pos);
},
afterAjax:function()
{ },
animate:true,
drag:false,
docToFolderConvert:true,
url:'<%=URL%>',
formid:'13005'
});
});
function addNode()
{
var temp=simpleTreeCollection.get(0).getSelected();
var d= temp.find('>span').attr("pid");
simpleTreeCollection.get(0).addNode("a","c",function(node1,node2)
{
alert(node1.find('>span').attr("pid"));
alert(node2.find('>span').text());
});
}
function isDrag()
{
var t=simpleTreeCollection.get(0).option.drag
simpleTreeCollection.get(0).option.drag=t?false:true;
}