示例代码:
var strings = ["hello","world","!"]; var message = "";
for(var i=0; i console.log(message); //输出"helloworld!" 示例代码: var str1 = "hello";
var str2 = "world";
var str3 = "!";
var message = str1.concat(str2, str3); console.log(message); //输出"helloworld!"
上一篇:变量无法区分
下一篇:变量无法在.then()之外访问