Hello it is possible to access the value of a JavaScript variable by name? Example:
var MyVariable = "Value of variable";
function readValue(name) {
....
}
alert(readValue("MyVariable"));
Is this possible, so that the output is "Value of variable"? If yes, how do I write this function?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…