将第三个库添加到 Sencha touch 项目

Adding third library to Sencha touch project

我需要在 Sencha Touch 项目中添加第三个库,目前我正在将 link 作为 <script type="text/javascript" src="ux/utility/pdfobject_source.js"></script>

添加到第三个库

但是在"sencha app build"命令后出现错误,控制台发送错误"PDFObject is not defined"

我想我没有正确添加这个库,但我不知道如何..

谢谢!

编辑并解决!

为此,我将 url 添加到 index.html,但是添加到 app.json 依赖项非常重要...现在它已解决,我很高兴!

您必须在 app.json 中添加 js 文件引用,然后只有我会在构建后显示:在 app.json 中的 js 部分这样做:

         {
        "path": "touch/sencha-touch.js",
        "x-bootstrap": true
    },

已解决...为此,我将 url 添加到 index.html,但是添加到 app.json 依赖项非常重要...现在我是很高兴!