今天在研究Meizz的动态树,有两个地方不明白。javascript的这种写法什么意思?
-----------------------
this.nodes = {}; this.node["0"] =
{
"id": "0",
"path": "0",
"isLoad": false,
"childNodes": [],
"childAppend": "",
"sourceIndex": "0"
};---------------------------------
这两行代码什么意思,谁知道。
全文代码地址:http://topic.csdn.net/t/20050310/23/3841740.html#Top
-----------------------
this.nodes = {}; this.node["0"] =
{
"id": "0",
"path": "0",
"isLoad": false,
"childNodes": [],
"childAppend": "",
"sourceIndex": "0"
};---------------------------------
这两行代码什么意思,谁知道。
全文代码地址:http://topic.csdn.net/t/20050310/23/3841740.html#Top
{
"id": "0",
"path": "0",
"isLoad": false,
"childNodes": [],
"childAppend": "",
"sourceIndex": "0"
}
{
"id": "0",
"path": "0",
"isLoad": false,
"childNodes": [],
"childAppend": "",
"sourceIndex": "0"
};
这个表示node的第一个元素.是个枚举类型.id = 0,path=0...
http://www.json.org/json-zh.html
{
"id": "0",
"name": "aaa"
};
alert(node.id);
alert(node.name);
tree.setIconPath("./");
tree.nodes['0_1'] = 'text:节点 1';
tree.nodes['1_2'] = 'text:节点 2';
tree.nodes['1_3'] = 'text:节点 3';
tree.nodes['1_4'] = 'text:节点 4';
tree.nodes['1_5'] = 'text:节点 5';
tree.nodes['1_6'] = 'text:节点 6';
tree.nodes['1_7'] = 'text:节点 7';
tree.nodes['1_8'] = 'text:节点 8';
tree.nodes['1_9'] = 'text:节点 9';
tree.nodes['1_10'] = 'text:节点 10';
------------------
这又是什么意思
------------------------
我看的这本书上没有这章~!
在那里看?
------------------------
我看的这本书上没有这章~!
在那里看?
网上搜一下