0
我使用Titanium Appcelerator创建了一个应用程序,其中我使用webview来显示一些网页。所有要在Web视图中显示的网页都启用了HTML5缓存,因为我希望即使应用程序脱机运行,网页也可以使用。在HTML5缓存的情况下,Webview无法正常工作
我面对的问题是,当没有网络连接时,webview无法显示缓存的网页。但我已经测试了浏览器中的所有网页,并且它们都工作正常。
我正面临着Android平台的这个问题。
这是网页视图代码:
//FirstView Component Constructor
function FirstView() {
//create object instance, a parasitic subclass of Observable
var self = Ti.UI.createView();
var webview = Ti.UI.createWebView({
url: 'http://www.w3schools.com/html/tryhtml5_html_manifest.htm'
});
self.add(webview);
return self;
}
module.exports = FirstView;
非常网址在浏览器中正常工作。我应该如何解决这个问题?
无法获取您正确............ ..你可以详细阐述一点 – kittu88