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