我正在按照ExtJS 4.x的教程,但我找不出什麼東西。我有這個類:ExtJS學習教程。不能創建窗口
Ext.define('MyApp.LoginWindow', {
extend: 'Ext.Window',
title: 'Log in',
initComponent: function() {
Ext.apply(this, {
items: [
{
extend: 'Ext.Window',
title: 'Log in'
},
]
});
MyApp.LoginWindow.superclass.initComponent.apply(this, arguments);
}
});
這是在我的app.js文件中。但我不知道我實際上可以在實際使用此腳本的文件中使用此腳本創建新窗口。我想這很簡單,但在解決這個問題之前不想繼續。
感謝 Leron
我不認爲你跟着教程編寫。堅持sencha的文檔和例子,如果你想學習ExtJS 4 – nscrob 2012-03-27 13:47:56
你可以去看看自己的教程,它從字面上複製粘貼! – Leron 2012-03-27 14:12:03