');
if(data.name) html.push(data.name);
html.push('
');
for(var i=0,c;c=data.items[i++];){
//将主表信息放进去 data.id
html.push(parseItem(c,data.id));
}
html.push('
');
}
return html.join('');
};
this.bind = function(buddy){
if(buddy)
options.buddy = buddy;
initTreeEventBind();
};
if(!options.data)return;
var html=parseItem(options.data);
$(div).html(html).bind("mousedown",bindMouseDown);
}
$.fn.dragdiv = $.fn.dragDiv = function(method){
if(methods[method]) {
return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
} else {
return methods.init.apply(this, arguments);
}
};
})(jQuery);