合并字符串的几种方法

1、str = "a" + "b" + "c";

2、str = "a";

   str += "b";

     str += "c";

3、str = ["a", "b", "c"].join("");

4、str = "a";

    str = str.concat("b", "c");

 

posted @ 2013-10-07 14:19  charling  阅读(751)  评论(0)    收藏  举报