日期:2014-05-16 浏览次数:20401 次
load: function(options) {
options = options
------解决方案--------------------
{};
options.params = options.params
------解决方案--------------------
{};
var me = this,
node = options.node
------解决方案--------------------
me.tree.getRootNode(),
root;
// If there is not a node it means the user hasnt defined a rootnode yet. In this case lets just
// create one for them.
if (!node) {
node = me.setRootNode({
expanded: true
});
}
if (me.clearOnLoad) {
node.removeAll();
}
Ext.applyIf(options, {
node: node
});
options.params[me.nodeParam] = node ? node.getId() : 'root';
if (node) {
node.set('loading', true);
}
&