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) { //事件的參數可查API, 參數的屬性可以用 firebug 跟蹤查詢.
var t = Ext.util.JSON.decode(response.responseText);
var n;
if (
t[0].children.length == 0) //注: length不是JSON對象,僅僅是JS對象內置數組屬性.JS對象調用:
t[0].children
n = n + 1;
posted on 2008-09-10 11:53
紫蝶∏飛揚↗ 閱讀(12014)
評論(1) 編輯 收藏 所屬分類:
EXTJS 、
重點 、
Json