jquery
.bind("select_node.jstree", function(e, data) {
//alert(data.rslt.obj.attr("id") + ":" + data.rslt.obj.attr("rel"));
})
www.cppcns.com
.delegate("a", "click.jstree", $.proxy(function (event) {
event.preventDefault();
this.select_node(event.currentTarget, true, event);
}, this))
.delegate("a", "dblclick.jstree", $.proxy(function(event) {
event.preventDefault();
this.dblclick_node(event.currentTarget, true, event);
}, this))
dblclick_node: function(obj, check, e) {
obj = this._get_node(obj);
if (obj == -1 || !obj http://www.cppcns.com|| !obj.length) { return false; }
th编程客栈is.__callback({ "obj": obj });
},
.bind("dblclick_node.jstree", f编程客栈unction(e, data) {
//alert(data.rslt.obj.attr("id") + ":" + data.rslt.obj.attr("rel"));
})
编程客栈
复制代码 代码如下:
.bind("select_node.jstree", function(e, data) {
//alert(data.rslt.obj.attr("id") + ":" + data.rslt.obj.attr("rel"));
})
www.cppcns.com
复制代码 代码如下:
.delegate("a", "click.jstree", $.proxy(function (event) {
event.preventDefault();
this.select_node(event.currentTarget, true, event);
}, this))
复制代码 代码如下:
.delegate("a", "dblclick.jstree", $.proxy(function(event) {
event.preventDefault();
this.dblclick_node(event.currentTarget, true, event);
}, this))
复制代码 代码如下:
dblclick_node: function(obj, check, e) {
obj = this._get_node(obj);
if (obj == -1 || !obj http://www.cppcns.com|| !obj.length) { return false; }
th编程客栈is.__callback({ "obj": obj });
},
复制代码 代码如下:
.bind("dblclick_node.jstree", f编程客栈unction(e, data) {
//alert(data.rslt.obj.attr("id") + ":" + data.rslt.obj.attr("rel"));
})
编程客栈
本文标题: jquery.jstree 增加节点的双击事件代码
本文地址: http://www.cppcns.com/wangluo/javascript/58533.html
© 著作权归作者所有
举报
发表评论
0/200