📜  javascript 字符串到变量 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:54.178000             🧑  作者: Mango

代码示例3
var myString = "number";
eval(myString +" = 9");
console.log(number);