gpt4 book ai didi

android - 如何在 index.html 中引用 cordova.js

转载 作者:太空狗 更新时间:2023-10-29 16:29:14 32 4
gpt4 key购买 nike

我正在向我的 cordova android 应用程序添加插件,但我无法在 index.html 页面中引用 cordova.js 文件。我的应用程序结构图像是:[应用程序结构图像][1]。我在图像 index.html 和 cordova.js 中突出显示了这两个文件。我的解决方案是将插件 JS 文件从 platform_www 文件夹复制到 www 文件夹内。但是随着插件不断添加,它似乎不是复制粘贴 js 文件的好解决方案。

最佳答案

编译应用程序时,cordova.js 文件被复制到 www 目录结构中,您无需手动复制它 - 您只需添加一个链接:

<script src="cordova.js"></script>

关于android - 如何在 index.html 中引用 cordova.js,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43322950/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com