I am using following code to store value in session object in jQuery but i get error $.session function is not a function.
I also add plugin "jquery.session.js" from githhub site but it is not work. Pls let me help out what's wrong
// To Store
$(function() {
$.session("myVar", "value");
});
// To Read
$(function() {
alert( $.session("myVar") );
});
If there is any other way to do this...then also tell me.....
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…