简体   繁体   English

Apache Cordova应用程序未更新

[英]Apache Cordova Application Not Updating

I'm getting started with Apache Cordova so far I've got it install via Node.js and I have all the necessary SDKs and libraries installed and linked up. 到目前为止,我已经开始使用Apache Cordova,我已经通过Node.js安装了它,并且我已经安装并链接了所有必需的SDK和库。

I'm modifying my source html/js/css using JetBrains WebStorm on Windows 8. 我在Windows 8上使用JetBrains WebStorm修改源html / js / css。

I'm testing my applications on my 1st generation Nexus 7. 我在第一代Nexus 7上测试我的应用程序。

The key issue I'm having at the moment is when I go to re-build and run my application on the Nexus 7. 我现在面临的关键问题是当我在Nexus 7上重新构建并运行我的应用程序时。

Changes to my JS reflect immediately between builds and runs such as: 我的JS的更改立即反映在构建和运行之间,例如:

console.log("Hello World"); to console.log("Hello Cordova"); console.log("Hello Cordova");

However changes to the HTML such as: 但是对HTML的更改如:

<title>Hello World</title> to <title>Hello Cordova</title> <title>Hello World</title><title>Hello Cordova</title>

Take ages to reflect in the applications. 需要很长时间才能反映出来。

I assume there's some sort of cache on the device that isn't being cleared between builds? 我假设设备上有某种缓存在构建之间没有被清除?

Any ideas how to fix this? 任何想法如何解决这一问题?

不确定,但尝试在config.xml中使用以下首选项:

<preference name="useBrowserHistory" value="false" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 对Apache Cordova应用程序使用JQuery fileTree - using JQuery fileTree for Apache Cordova application Apache Cordova:在运行时更新index.html - Apache Cordova: issue updating index.html at runtime Apache Cordova - 混合移动应用程序页面像 Chrome 浏览器一样打开,而不像cordova 应用程序 - Apache Cordova - Hybrid Mobile Application page opening like a chrome browser not like cordova application Apache Cordova连接到MVC5中的Asp.net Web应用程序 - Apache Cordova connecting to Asp.net Web Application in MVC5 如何记录Apache Cordova应用程序中加载的iframe的http响应? - How to log http response from iframe loaded in Apache Cordova Application? 如何将 Node.js Web 服务器与 Apache Cordova 应用程序一起使用 - How to use a Node.js web server with an Apache Cordova Application 发送电子邮件后返回到应用程序-iOS Javascript Apache Cordova Mailto - Return to application when email sent - iOS Javascript Apache Cordova Mailto 将 Apache Thrift 与 Apache Cordova 结合使用 - Combining Apache Thrift with Apache Cordova Cordova和Ionic:插件未更新 - Cordova and Ionic: plugin not updating Cordova 更新部分页面 - Cordova updating part of page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM