`

jstree1.0 小贴士

 
阅读更多
  1. 异步加载
    				"url" : "menuTreeTest.action",
    				"data" : function (n) { 
    					return { 
    						"operation" : "get_children", 
    						"id" : n.attr ? n.attr("id") : "0102" 
    					}; 
    				}
    默认取节点0102,否则取所点节点。 

  2.  一次只能选择一个节点
    checkbox : { "two_state" : true } 
    
    .bind("change_state.jstree", function(e, data){ 
            if(data.inst.get_checked().length>1){ 
                    data.inst.uncheck_node(data.rslt[0]); 
            } 
    })
     
  3. 其他的参考
    http://lihx.iteye.com/blog/752623
    http://groups.google.com/group/jstree/browse_thread/thread/ec2c48eb65581c2e


  • 大小: 60.4 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics