转换方法3

2017-06-15 18:42:00
admin
原创
496
<!DOCTYPE html>
<html>
<head>
    <title>Array Type Join Example</title>
    <script type="text/javascript">
    
        var colors = ["red", "green", "blue"];
        alert(colors.join(","));      //red,green,blue
        alert(colors.join("||"));     //red||green||blue

    </script>
</head>
<body>

</body>
</html>
  • QQ讨论群
  • 关注微信
    • 欢迎咨询
    • 欢迎加入QQ群 16506021
  • 公众号:源宝网络