对于项目,不再建议使用Ext.onReady()函数,而使用
Ext.application({
name : "HelloExt4",
launch : function() {
Ext.create("Ext.container.Viewport", {
layout : "fit",
items : [{
title : "Hello Ext4",
html : '<h1>hello,welcome to Ext4!</h1>'
}]
});
}
})