如何在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的視頻來看,蘋果公司確實似乎正在對這個標準的所有圓柱體進行射擊。改變不是一種選擇。 –