Sencha sqlite example

前端 未结 6 1437
囚心锁ツ
囚心锁ツ 2021-01-05 14:17

I would like to see a decent example of a mobile web app using the Sencha framework with a client side DB accessed with SQLite. I\'m currently digesting JqTouch and kinda ge

6条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-05 14:53

    Sencha's local storage doesn't take advantage of SQLite via the JavaScript API in the browser, but does use local key:value storage and has it's own way of referencing data to make it pseudo relational. This is still part of the WebDB spec, which is probably still SQLite under the hood if I had to guess. It's more persistent than a cookie or session, regardless.

    You can also receive XML/JSON from a server over JSONP or Ajax if you're on the same domain, create a model to handle that data as well and bind it to a local store so that your data is available offline.

提交回复
热议问题