Summary:
What we're sharing today is using jquery to deal with the session. We will use the Sessionstorage object, which is similar to the Localstorage object, except that Sessionstorage is used to store session data. This data will be erased when the user closes the browser.
Brief introduction:
Jquerysession is a jquery-based library of sessions that can be used to simplify our work. You need to introduce jquery before you can use it.
Syntax: adding data
$.session.set (' key ', ' value ')
Delete data
$.session.remove (' key ');
Get Data
$.session.get (' key ');
Clear Data
$.session.clear ();
Download jquerysession
Other jquery learning Address:
Jquery:http://www.itmmd.com/tag/jquery.html
jquery Tutorial (-jquery) plug-in development of the global function plug-in
jquery Tutorial (-jquery) custom selectors for plugin development
jquery Tutorial (-jquery) plug-in development to specify parameters for plug-in methods
jquery Tutorial (-jquery) plugin development using plugins
jquery Tutorial (-jqueryajax) Modify the default options for the action
jquery integration Usage-using jquery to manipulate the session