例子: 比如我们有个字符串"a","b","c"我们要输出为a,b,c这样的格式,那么我们可以这样: var a = ["a","b","c"]; document.write(a); 若使用join,那必须得这样: var a = ["a","b","c"].join(","); document.write(a); 如果你说你要直接输出abc,而不输出a,b,c,那使用join再合适不过。 var a = ["a","b","c"].join(""); document.write(a); 演示: