Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/452.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 从WinJS中的AppFolder在Iframe中打开本地HTML文件_Javascript_Iframe_Windows 8_Windows Store Apps_Winjs - Fatal编程技术网

Javascript 从WinJS中的AppFolder在Iframe中打开本地HTML文件

Javascript 从WinJS中的AppFolder在Iframe中打开本地HTML文件,javascript,iframe,windows-8,windows-store-apps,winjs,Javascript,Iframe,Windows 8,Windows Store Apps,Winjs,我正在使用WinJS库编写Windows应用商店应用程序。我正在使用IFrame加载本地HTML文件 <iframe id="iframe_Id" onload="Load();" src="/html/OPS/chapter_001.xhtml"></iframe> 所以打开appfolder我就是这样做的 <iframe id="iframe_Id" onload="Load();" src="ms-appdata:///Cinderella_Or_The_L

我正在使用WinJS库编写Windows应用商店应用程序。我正在使用IFrame加载本地HTML文件

<iframe id="iframe_Id" onload="Load();" src="/html/OPS/chapter_001.xhtml"></iframe>
所以打开appfolder我就是这样做的

<iframe id="iframe_Id" onload="Load();" src="ms-appdata:///Cinderella_Or_The_Little_Glass_Slipper/OPS/000Title.html"></iframe>

但它根本不起作用。我知道我可以从中加载本地HTML文件

请推荐我。我在这里被击中了


谢谢

尝试更改
src
链接

src=“ms-appdata:///local/Cinderella_Or_The_Little_Glass_Slipper/OPS/000Title.html“


注意第一个本地人

为什么不使用
WebView
?(网络主机的功能要强大得多)我不能限制网络视图的放大;我没有webhost内容&我的AppFolder中只有本地HTML内容。仅供参考,我在windows8xaml中尝试了webview&在我意识到用HTML/WinJS开发之后。如果你知道关于我的帖子的任何信息,请帮助我。谢谢。WebView存在于WinJS的Win 8.1 SDK中。是的。我试过了。我想我们还是不能禁用webview的缩放功能。因为我没有看到任何在webview上禁用缩放的属性。我今天在WinJS中尝试了它;为什么bcz我的应用程序是Epub的阅读器。缩放与阅读器无关…如何在iFrame而不是WebView(功能更强)上禁用它?
<iframe id="iframe_Id" onload="Load();" src="ms-appdata:///Cinderella_Or_The_Little_Glass_Slipper/OPS/000Title.html"></iframe>