href不是tree的标准配置,要放到attributes节点里面,参数也传递错了onClick: function(node){
     $('#tt').tabs('add',{title:node.text,href:node.attributes.href,closable:true});
}

解决方案 »

  1.   

      href="...", 这句放在哪?   attributes节点 这是什么意思
      

  2.   

    非标准配置属性会自动放到节点的attributes属性里面,描述有点问题。。呵呵。attributes: custom attributes can be added to a node
      

  3.   

    嗯 这个我弄懂了   还有 ComboBox 怎么动态赋值?  AJAX请求后台 在回调函数里 要用JSON数组中每个的其中两个字段分别做为下拉框的value 跟text   不能用 $('#XX').append( "<option value='XY'>"+"XX"+"</option>")  这种么?