本地存储网络数据的不同方式
无论如何,是否有一个客户端小型数据库可以在数据发生更改时与服务器端数据库同步?
所以我正在考虑编写一个 javascript 程序来存储一堆学生申请表。但互联网连接会不稳定,因为使用它的人员将在校园内走动,收集平板电脑上的表单数据。
我查看了 localstorage,但它没有任何数据库功能。
我真的在寻找可以进行本地数据库条目并使异步同步变得容易的技术(就像 dropBox 所做的很棒,只是它不是一个 Web 应用程序)
我希望我的问题很清楚 谢谢
Is there anyway to have a client side small database that syncs with server side database whenever there is a change in data?
So I am looking at writing a javascript program to store a bunch of student application forms. But the internet connection is gonna be unstable as the personnel using it will be moving around campus to collect form data on his tablet.
I have looked at localstorage, but it does not have any database features.
I am really looking for technologies that can do local database entries and make asynchronous syncing easy (like what dropBox did was awesome except that it is not a web application)
I hope my question is clear
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于您想要什么样的支持。
查看 http://diveintohtml5.ep.io/storage.html#future 他们在哪里谈谈Web SQL数据库规范和IndexedDB。
它可能会起作用(即 Web SQL 数据库),因为它听起来像是一个受控环境。
It depends upon what kind of support you want.
Check out http://diveintohtml5.ep.io/storage.html#future where they talk about the Web SQL Database specification and IndexedDB.
It may work (Web SQL Database that is), since it sounds like a controlled environment.
以下存储机制(如果可用):
使用 HTML5 Canvas 标签读取像素(cookie)的 PNG 返回
Copypasta from evercookie 描述。由于寿命太短和/或空间太少,有几个项目被删除。不要借用他的代码,不过,它使用 jquery 并且在其他方面很笨拙。
following storage mechanisms when available:
PNGs using HTML5 Canvas tag to read pixels (cookies) back out
Copypasta from evercookie description. Several items were removed because too short lifespan and/or too few space. Do not borrow his code, tho, it uses jquery and is clumsy in the other ways.