小弟最近在做一个项目,用到了jstree的树形结构控件,遇到动态添加节点的问题,但是我照着 jstree官网的demo写出来的程序,到动态添加节点的时候,在
.bind("create.jstree", function (e, data) {
$(data.rslt.obj).attr("id", "li_");
})
进不去function里面,请问哪问高手能够指点一下!
.bind("create.jstree", function (e, data) {
$(data.rslt.obj).attr("id", "li_");
})
进不去function里面,请问哪问高手能够指点一下!
$("#demo").jstree("create", null, "last", { "attr": { "rel": this.id.toString().replace("add_", "")} });
而且这一句是可以被执行的,就是不能进去上面的那个bind,郁闷啊