为什么iframe没有在winjs应用程序中加载所有网页?

为什么iframe没有在winjs应用程序中加载所有网页?,iframe,winjs,Iframe,Winjs,大家好 我使用了一个空白的WinJS应用商店应用程序,并将下面的代码放在default.html文件中 但是iframe没有加载google主页。这一页是空白的。而如果我将src值替换为“”,则其工作正常。为什么会有这种奇怪的行为。我们需要为某些URL获取任何其他权限吗?请帮帮我 提前谢谢 You can't load ooogle in iframe,since they are blocking this facility. You can use Iframe for some othe

大家好

我使用了一个空白的WinJS应用商店应用程序,并将下面的代码放在default.html文件中

但是iframe没有加载google主页。这一页是空白的。而如果我将src值替换为“”,则其工作正常。为什么会有这种奇怪的行为。我们需要为某些URL获取任何其他权限吗?请帮帮我

提前谢谢

You can't load ooogle in iframe,since they are blocking this facility.
You can use Iframe for some other sites,but you won't get full controll of their JS[Loading sites] ,may have to face some breaking point in such sites.
如果你真的想加载谷歌,试试这个

1. Make your default browser as IE10.
2. trigger an event.

function openYourLink(){    
var url = new Windows.Foundation.Uri("http://www.google.com")
Windows.System.Launcher.launchUriAsync(url);
}

在Windows 8.1中,您还可以使用webview控件,该控件对谷歌等网站使用的框架破坏代码不敏感。

巴勒莫4的可能副本是一个具有特殊属性的神奇网站,只有仙女才能看到:)