javascript - how to do something when property created with pure js -


i want when new property added object named session. example, create new property :

session["name"] = 'yoza'; 

when session.name created, need something.

how that?

you use setter function. like

session.set = function(property, value){     session[property]=value;     somecallback(); } 

Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -