作者:红色的甜言1986 | 来源:互联网 | 2023-05-19 17:00
Imdevelopingahybridcordovaappthatshouldworkofflineaswell.Itjustcachesthedatafetche
I'm developing a hybrid cordova app that should work offline as well. It just caches the data fetched from the network and re-uses the cached version if offline.
我正在开发一款应该离线工作的混合Cordova应用程序。它只缓存从网络获取的数据,并在离线时重新使用缓存版本。
Since it's a cordova app, the dev files are on my machine and the url embedded in the app is pointed to my machine, so turning on airplane mode will stop the app to even pull the source code files to start with.
由于它是一个cordova应用程序,开发文件在我的机器上,嵌入在应用程序中的URL指向我的机器,因此打开飞行模式将停止应用程序甚至拉动源代码文件开始。
I'm trying to find out what's the approach to develop and test the offline behavior as you code.
我正在尝试找出在编码时开发和测试脱机行为的方法。
2 个解决方案