object - How can i a string use as a objectname in javascript? -
how can use string object name?
var = "hello", b = { hello : "word" }; alert(b.a);
this give in empty box. want still use variable a.
how can string use objectname in javascript?
this how it.
window["obj"] = { hello:"word"};
Comments
Post a Comment