API:
load : ( Object This, Object node, Object response )
Fires when the node has been successfuly loaded.
JS:
//[{"identity":"","title":"車身部門","date":"","uiProvider":"col","author":"","children":[{"identity":"車身部門"......
treeload.on('load', function(This, node, response) { //事件的參數(shù)可查API, 參數(shù)的屬性可以用 firebug 跟蹤查詢.
var t = Ext.util.JSON.decode(response.responseText);
var n;
if (
t[0].children.length == 0) //注: length不是JSON對(duì)象,僅僅是JS對(duì)象內(nèi)置數(shù)組屬性.JS對(duì)象調(diào)用:
t[0].children
n = n + 1;
posted on 2008-09-10 11:53
紫蝶∏飛揚(yáng)↗ 閱讀(12013)
評(píng)論(1) 編輯 收藏 所屬分類:
EXTJS 、
重點(diǎn) 、
Json