liss 发表于 2013-2-6 09:59:35

ext中autoLoad页面中js的问题记录

1.增加script属性,如:

[*]var n = this.add( {   
[*]    id : node.id,   
[*]    closable : true,   
[*]    //通过autoLoad属性载入目标页,如果要用到脚本,必须加上scripts属性   
[*]         autoLoad : {   
[*]            url : "info.aspx",   
[*]            scripts : true  
[*]        }    
[*]    });   
[*]this.setActiveTab(n);
页: [1]
查看完整版本: ext中autoLoad页面中js的问题记录