开发者

SQLite, mobile or browser of mobile

well while planning a mobile application

a question comes in mind

SQLite!

is suppo开发者_如何学Pythonrted in many mobile browsers (IOS, blackberry, android (I guess) )

so if all my app need is to save and restore presistent data (like notes, or schedule)

Is developing web app htmls + javascript that stores data in SQLite of browser

Is equivalent to creating a mobile app that using IOS, or android java, that stores data in mobile's SQLite ?


HTML 5's local storage is definitely an option here. It can definitely do CRUD stuff and is really simple to use. Here's a quick storage example:

var store = window.localStorage;
store.setItem('cow','moo');

# and to get it back:
store.getItem('cow')

If you're only storing small amounts of data then this is the best option. If you're doing more complicated stuff like joins or storing a large amounts of data then I'd consider a native database instead.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜