随笔-9  评论-168  文章-266  trackbacks-0
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 紫蝶∏飛揚↗ 阅读(11994) 评论(1)  编辑  收藏 所属分类: EXTJS重点Json

评论:
# re: EXTJS 中接收到的 JSON 字符串转换成 JS 数组对象,具体可以跟踪查询[未登录] 2013-08-06 20:50 | f
df  回复  更多评论
  

只有注册用户登录后才能发表评论。


网站导航: