Web SQLでオフライン ストレージ モード (オフライン/オンライン) の基本的な切り替えを設定するにはどうすればよいですか? javascriptがあるのは知ってる
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 統合があるかどうかを尋ねています。