javascript - How to store a list in the web sql or any type of storage in the browser -
How to store a list in any kind of storage in web SQL or Browser, I have three ways to store data In the browser, i.e. with local storage, session storage and web SQL 5, I need to store java.util.List in the browser and it needs to be modified in the future, what is the way to do this? ?
I'm not sure - you need to store and manipulate the 'list' on the server or on the client is?
In the first case you can use the session. In the second case you can not use the session because you can not use session variables in javascript.
In such a situation, I usually create a hidden field (if it is a related page) or cookie (if it is some related application). Using base 64, you can convert the client to a string list, modify them and save them. Of course you can later read the data on the server.
Comments
Post a Comment