我一直在寻找这个问题的答案,但我似乎就是找不到我做错了什么。我正在构建一个Windows8应用程序,它将与谷歌的API捆绑在一起,我对整个iframe概念都很着迷。我遵循了一个又一个例子,但似乎什么都不起作用。下面是我正在尝试处理的两个页面的片段,以及我得到的错误。任何帮助都将不胜感激。提前感谢!
<html>
<head>
<meta charset="utf-8" />
<title>WinWebApp1</title>
<!-- WinJS references -->
<script src="//Microsoft.WinJS.1.0.RC/js/base.js"></script>
<script src="//Microsoft.WinJS.1.0.RC/js/ui.js"></script>
<!-- WinWebApp1 references -->
</head>
<body>
<div>
<iframe id="Iframe" src="ms-app-web:///page.html"></iframe>
</div>
</body>
</html>第2页
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
<div>This is a test</div>
</body>
</html>我得到了错误
APPHOST9624: The app can’t use script to load the ms-app-web:///page.html url because the url launches another app. Only direct user interaction can launch another app.发布于 2012-12-16 03:15:49
我遇到了同样的问题。这绝对是你想要的"ms-appx-web“。
<iframe id="Iframe" src="ms-appx-web:///page.html"></iframe>https://stackoverflow.com/questions/11479713
复制相似问题