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
紫蝶∏飛揚↗ 阅读(12008)
评论(1) 编辑 收藏 所属分类:
EXTJS 、
重点 、
Json