javascript - Private static variable? -


this question has answer here:

is possible create "private static" variables in javascript similar java?

my scenario need retrieve data point server , save in static variable, function uses need not make server call every time called.

i need data once fetched , copied variable not read outside class need secure, want have private. have read achieve private variable use scope functionality in javascript need static.

can achieved?


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -