【发布时间】:2012-11-19 19:43:41
【问题描述】:
我想从 Windows 8 Metro (javascript) 应用程序打开一个本地 html 文件。 我试过这样做:http://msdn.microsoft.com/en-us/library/windows/apps/hh701484.aspx。只要我继续提供实际的 http 地址,它就可以正常工作,但是一旦我用我的本地文件路径替换它们,每次成功返回都是错误的。
有什么帮助吗??
【问题讨论】:
-
从您链接到的页面:
You cannot use this method to launch a URI in the local zone. For example, apps cannot use the file:/// protocol to access files on the local computer. Instead, you must use the Storage APIs to access files. -
@Pekka :您能否提供一些文档或示例的链接。
-
不是真的 - 我对 Metro 一无所知。但是您的页面包含指向存储 API 相关文档的链接
-
我没有找到任何可以启动本地文件的存储 API。它们仅用于阅读/写作和其他用途。
标签: javascript windows-8 microsoft-metro