首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

extjs 创办多个实例

2012-10-07 
extjs创建多个实例?Ext.onReady(function() {var html p测试数据./pvar configs [{title: Bas

extjs 创建多个实例

?

Ext.onReady(function() {    var html = '<p>测试数据.</p>';        var configs = [{        title: 'Basic Panel',        collapsible:true,        width:400,        html: html    },{        width: 320,        height: 320,        title: 'Masked Panel with a really long title',        bodyStyle: "padding: 5px;",        html: 'Some content',          }];        Ext.each(configs, function(config) {   //循环迭代 configs         var element = Ext.getBody().createChild({cls: 'panel-container'});//创建一个子窗口                Ext.createWidget('panel', Ext.apply(config, {            renderTo: element,            bodyPadding: 7        }));    });});

热点排行