在链接添加参数会导致网络错误(Android的4.0.3 +的PhoneGap) [英] Adding parameter in link causes network error (Android 4.0.3+PhoneGap)

查看:465
本文介绍了在链接添加参数会导致网络错误(Android的4.0.3 +的PhoneGap)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当试图从index.html页面导航到purchase.html,发生网络错误,如果我添加一个参数的链接似乎

When trying to navigate from index.html page to purchase.html, this "A Network error occurred" would appear if I add a parameter to the link

<a href="purchase.html?id=2">. 

删除?ID = 2,那么链接的作品。

Removing the "?id=2" then the link works.

这是详细的错误信息:
04-08 21:09:23.850:D /科尔多瓦(967):DroidGap:GapViewClient.onReceivedError:错误code = -1说明=出现网络错误。 URL =文件:///android_asset/www/purchase.html ID = 2

This is the detailed error msg: 04-08 21:09:23.850: D/Cordova(967): DroidGap: GapViewClient.onReceivedError: Error code=-1 Description=A network error occurred. URL=file:///android_asset/www/purchase.html?id=2

推荐答案

这似乎是Android的一个重大课题。 <一href=\"http://$c$c.google.com/p/android/issues/detail?id=17535\">http://$c$c.google.com/p/android/issues/detail?id=17535

It seems to be a major issue of Android. http://code.google.com/p/android/issues/detail?id=17535

这篇关于在链接添加参数会导致网络错误(Android的4.0.3 +的PhoneGap)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆