[英]Open local HTML file in Iframe from AppFolder in WinJS
I am writing Windows store app using WinJS Library. 我正在使用WinJS库编写Windows应用商店应用程序。 I am using IFrame to load Local HTML files.
我正在使用IFrame加载本地HTML文件。
<iframe id="iframe_Id" onload="Load();" src="/html/OPS/chapter_001.xhtml"></iframe>
Here the file contains in my Solution Explorer. 这里的文件包含在我的解决方案资源管理器中。
But I want to open from my app folder which is path : 但是我想从我的app文件夹中打开path:
C:\Users\User\AppData\Local\Packages\c1c70291-897c-4c49-9efc-e2bfe03de92f_vkg0nyxnnp64t\LocalState\Cinderella_Or_The_Little_Glass_Slipper\OPS\000Title.html
So opening appfolder I am doing like this 所以打开appfolder我就是这样
<iframe id="iframe_Id" onload="Load();" src="ms-appdata:///Cinderella_Or_The_Little_Glass_Slipper/OPS/000Title.html"></iframe>
But it is not working at all. 但这根本没有用。 I know I can load Local HTML files suggested from here
我知道我可以加载此处建议的本地HTML文件
Please suggest me. 请给我建议。 I got struck here.
我被打到这里了。
Thanks 谢谢
try with changing src
link. 尝试更改
src
链接。
src="ms-appdata:///local/Cinderella_Or_The_Little_Glass_Slipper/OPS/000Title.html"
eye on first local! 抢先本地!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.