仅客户端 Web 应用程序的客户端存储?
我正在自学 Web 开发,并且正在 Chrome 网上商店上开发一个用 HTML 和 JavaScript 编写的小型免费 Web 应用程序。我试图将应用程序完全保留在客户端,因为我现在不想为网络托管服务支付月费。该应用程序依赖 localStorage 来保存文本位。我敦促用户通过复制/粘贴来备份它,但这是一种粗略的解决方法。
有谁知道我如何提供一个仅涉及用户硬盘或某种免费文件传输服务的文件管理界面?嵌入式 Java 小程序可以做到这一点吗?我基本上想要文件 API 的功能,显然尚未在 Chrome 中实现(http:// /www.html5rocks.com/tutorials/offline/whats-offline/)。
I'm teaching myself web development, and am working on a small and free web-app on the Chrome web store written in HTML and JavaScript. I'm trying to keep the app entirely client-side since I don't really want to pay a monthly fee for a web hosting service at this time. The app relies on localStorage for saving bits of text. I urge the user to back it up with copy/paste, but this is sort of a crude workaround.
Does anyone know how I might provide an interface for file management that involves only the user's hard drive or some sort of free file transfer service? Could an embedded Java applet do this? I basically want the functionality of the File API, apparently not yet implemented in Chrome (http://www.html5rocks.com/tutorials/offline/whats-offline/).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系——文件 API 是在 Chrome 中实现的。请参阅 http://www.html5rocks.com/tutorials/file/filesystem/一个教程。
Nevermind--File API is implemented in Chrome. See http://www.html5rocks.com/tutorials/file/filesystem/ for a tutorial.