Sencha sqlite example

前端 未结 6 1426
囚心锁ツ
囚心锁ツ 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 15:09

    Sencha is client-side Javascript, so your application actually runs on top of Safari. That means you can forget about accessing (or installing) your own SQLite database from within the browser sandbox.

    Having said that, you want to learn some new tricks, so why dont you read up on localStorage and DOM Storage. Basically the HTML5 specification allows for offline database storage based on SQLite (imagine relational database cookies). There is 1 per domain and they can be up to 5MB in size. I believe the iPhone supports this as well.

    HTML5 Database Functionality in iPhone

    Here are some links: Introduction some API Information and a nice little blog entry by a chap called Ben Lister

提交回复
热议问题