Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のプロジェクトには BranchStore.js と BranchModel.js があります。そして、すべての ext js 4 アプリで使用したいと考えています。出来ますか?
コードをhtmlのスクリプトタグに入れるか、Ext.syncRequire('path.js');を使用してそれらを取得します。通常のExt.require()呼び出しは非同期であり、コードをロードするための呼び出しの直後にコードを使用することはできません。
Ext.require可能ですが、使用する前にすべてのプロジェクトでロードする必要があります。
Ext.require