javascript - Creating a jquery plugin with persistent data -


i have question ... in jquery can define plugin persistent data? example:

$.myplugin({    name  : "stefan",    lastname : "luv", });     $.myplugin({name:"another"});  console.log($.myplugin.getname());//prints "another"; console.log($.myplugin.getlastname());//prints "luv" preserve first data; 

thanks


Comments

Popular posts from this blog

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -