我知道还有其他类似的问题,但我感觉好像他们不回答我的问题。我基本上想制作动态变量名称。让我举个例子:双字符串变量名称(Javascript)
//Take the strings "new" and "variable" and make them into a variable.
"new" + "variable" = "Hello World";
//So technically the variable name is "newvariable" and has the value "Hello World"
所以基本上它需要两个字符串,并将它们组合成一个变量名。我会如何去做这件事?
P.S.这是不到的变量的值,只是名称
哦,我从来没有在SO上找到这个帖子,谢谢! :) –