Windows Phone 8 Cordova- 无法打开 WWW 文件夹中的文件

Windows Phone 8 Cordova- Unable to open file from WWW folder

我正在为 Windows Phone 8 应用程序使用 Cordova,它必须在 InAppBrowser 中加载一些本地页面。 当我们尝试加载 google 之类的远程 URL 或 rediff 时,它工作得很好,但是当加载本地文件时,它显示错误 sayinh “我们正在显示此页面”

我的代码是 var link = "www/pages/windowsPayment.html"; window.open(link, '_blank', 'location=yes');

您可以尝试使用 navigatetolocalstreamuri 吗?

http://blogs.msdn.com/b/wsdevsol/archive/2014/06/20/a-primer-on-webview-navigatetolocalstreamuri.aspx

解决了.... HTML 页面的用户相对位置 url。例如,如果您的页面位于文件夹 www/index 中,而您要打开的页面是 www/test.html,则使用 url ../test.html.[ 打开它=10=]