开发者

How to use local storage to keep a users favorites list intact upon successive visits

So i have a web applicati开发者_如何学Con I've developed using jquery and some jqtouch. I have javascript functions to clone list items to another "favorites" list if the user so chooses.

My question is how can I use localStorage to keep their favorites in the list when they come back into the web application?

I can't seem to find a straight forward answer..

Am I supposed to store the cloned values? or the original li elements? or the functions? I'm totally lost, so any help would be appreciated, cheers.


take a look at lawnchair it is a js library for utilizing various local storage solutions on mobile devices.

Decent video tutorial here

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜