1. var arr=["html","css","js"];
    2. var b=arr.join();
    3. var c=arr.join("");
    4. var d=arr.join("/");
    5. console.log(b);//html,css,js
    6. console.log(c);//htmlcssjs
    7. console.log(d); //html/css/js
    8. console.log(typeof b);

    例子
    实现 1994/犯罪/剧情

    1. <p id="p"></p>
    2. <script>
    3. var p=document.getElementById("p")
    4. var arr=[1994,"犯罪","剧情"]; //1994/犯罪/剧情
    5. var str=arr.join("/");
    6. p.innerHTML=str;
    7. console.log(str);
    8. </script>