{ xtype: 'box', //或者xtype: 'component', width: 100, //图片宽度 height: 200, //图片高度 autoEl: { tag: 'img', //指定为img标签 src: 'myphoto.gif' //指定url路径 } } //动态更新只需要获取到刚才建立的box的dom的src myphoto.getEl().dom.src = newSrc