我是ExtJs的新手。 我一直在面板中獲取面板html內容的問題。如何從面板中獲取HTML內容ExtJs
xtype : 'panel',
id : 'first_block',
html : '<p>Hi this is belongs to first block.</p>',
listeners : {
render : function(c) {
c.body.on('click', function() {
alert('' + this.id);
alert(Ext.getCmp('first_block').items.getAt(0).getValue());
});
}
我沒有收到html內容,但我得到像「first_block-body」一樣的id。
在此先感謝。