コンソールにエラーが表示されます: Ext.application is not a function
。私のindex.html
ファイルには次のコードが含まれています:
...
<link rel="stylesheet" type="text/css" href="/ext-5.0.1/packages/ext-theme-neptune/build/resources/ext-theme-neptune-all.css" />
<script src="/ext-5.0.1/ext-all-debug.js"></script>
<script type="text/javascript" src="app.js"></script>
...
app.js
1つのデモから取られたこのコードだけがあります:
Ext.application({
name: 'AM',
appFolder: 'app',
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [{
xtype: 'panel',
title: 'Users',
html : 'List of users will go here'
}]
});
}
});
編集
ちなみに、「公式」/ext-5.0.1/examples/app/simple/simple.html
を実行しても同じエラーが発生します。何故ですか?