簡體   English   中英

將Ext后的JS文件包含在Sencha CMD中

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM