【问题标题】:Google Chrome file system api: bug in sample code?Google Chrome 文件系统 API:示例代码中的错误?
【发布时间】:2013-04-30 19:55:24
【问题描述】:

我正在尝试运行此示例代码:

https://github.com/GoogleChrome/chrome-app-samples/tree/master/filesystem-access

还有这个:

https://github.com/GoogleChrome/chrome-app-samples/tree/master/storage

我无法让它们在我的浏览器中运行:Chrome 26.0.1410.65 Mac Lion 10.7.5

(要查看它的运行情况,下载它并单击每个示例中包含的 html 页面)

如果您可以确认这是示例代码中的错误(它也不会在您的系统中运行),请告诉我应该在哪里提交此错误报告。 (https://code.google.com/p/chromium/https://github.com/GoogleChrome/chrome-app-samples/issues?

提前非常感谢。

【问题讨论】:

  • @BeardFist,当我单击按钮时没有任何反应。没有动作。这是控制台上的错误消息:puu.sh/2Kmkv.png
  • 好点,让我试试。
  • 当我将它作为扩展加载时,它可以工作。感觉有点愚蠢:),您能否将其添加为答案,以便我接受。谢谢!

标签: api google-chrome google-chrome-extension filesystems google-chrome-app


【解决方案1】:

您需要使用chrome://extensions 页面上的Load unpacked extension 按钮,然后启动应用程序才能使用chrome.* API。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-10-10
    • 1970-01-01
    • 2012-06-19
    • 2019-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多