extjs的column tree的事件

来源:互联网 发布:ubuntu 16.04分区大小 编辑:程序博客网 时间:2024/06/07 17:41

    tree.on({
        load :function(){
            rootNode = tree.getRootNode();
           
            function a(ab) {
                 if (ab.hasChildNodes) {
                      ab.eachChild(function(child) {
                       child.attributes.task='wa',
                Ext.Ajax.request({
                            url : 'ww.json',
                            success : function(response) {
                                var re = Ext.decode(response.responseText);
                               child.attributes.user='wa',

                                       a(child)
                                               
                                          
                            },
                            callback : function() {

                            }
                        }) })}
            }
             a(rootNode);
            }

原创粉丝点击