Appcelerator WebView无法加载URL

问题描述 投票:1回答:1

我测试一个URL(http://docker.itop.es:10101)并且WebView不会加载。

我的代码:

var web = Titanium.UI.createWebView();

web.height = "100%";
web.width = "100%";
web.ignoreSslError = true;
web.scalesPageToFit = false;
web.enableZoomControls = false;
web.showScrollbars = false;
web.scrollsToTop = false;
web.pluginState = Titanium.UI.Android.WEBVIEW_PLUGINS_ON;
web.url = "http://docker.itop.es:10101/";

$.index.add(web);
$.index.open();

我测试了Titanium SDK 6.1.1 6.1.2和5.1.1

感谢您的帮助。

android webview titanium appcelerator
1个回答
0
投票

我有一个类似的问题,我的Web视图没有加载。

最终,对我来说解决方案是对我发送给它的json字符串化数据进行urlencoding。这不是解决此特定问题的方法,但是它可以像我一样帮助其他访客找到此问题。

© www.soinside.com 2019 - 2024. All rights reserved.