![](/img/trans.png)
[英]Ext JS 4.2.1 + Sencha CMD - ItemSelector Buttons CSS not loaded
[英]Include JS file after Ext in Sencha CMD
我有一個Sencha Touch 2應用程序(非MVC),除了一個JS文件外,它運行良好。 在這里,我定義了一個商店。 在app.json
我包含了app.json
sencha-touch.js
並且這個文件也包含在內。 它的構建正確,但是當我打開頁面時,它的意思是
Object has no method 'create'
我的app.json:
{
"path": "touch/sencha-touch.js",
"x-bootstrap": true
},
{
"path": "res/mystore.js"
},
{
"path": "bootstrap.js",
"x-bootstrap": true
},
{
"path": "app.js",
"bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */
"update": "delta"
}
我嘗試了很多事情,但似乎沒有任何效果,將mystore.js的序列,x-bootstrap更改為true,但是什么也沒有。 任何想法?
提前致謝!
看來問題出在訂單上。 在我這樣改變之后:
{
"path": "touch/sencha-touch.js",
"x-bootstrap": true
},
{
"path": "bootstrap.js",
"x-bootstrap": true
},
{
"path": "app.js",
"bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */
"update": "delta"
},
{
"path": "res/mystore.js"
}
它完美地工作。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.