如何在Web SQL中设置离线存储模式(离线/在线)的基本切换?我知道这里有javascriptHTML5 - 设置离线存储的Web sql
window.navigator.onLine
。我可以检查模式,然后经历一个过程......
//All GET/POST performed with AJAX
//On Startup pulldown entire accessible database into offline storage (Doesn't seem secure IMO)
//if(read) pull from offline
//if(create, update, delete and online) pull from standard db, mark changes with offline expiration flag
//if(create, update, delete and offline) perform operation on offline storage, persist with POST when next online (change flag)
我问,如果有这些标准的任务,任何OOB整合?
我已经告知管理层这个事实。我们只支持iPad离线存储。从WWDC 2011的视频来看,苹果公司确实似乎正在对这个标准的所有圆柱体进行射击。改变不是一种选择。 –