操作方法

2017-06-15 18:50:00
admin
原创
506
<!DOCTYPE html>
<html>
<head>
    <title>Array Type Concat Example</title>
    <script type="text/javascript">
    
        var colors = ["red", "green", "blue"];
        var colors2 = colors.concat("yellow", ["black", "brown"]);
        
        alert(colors);     //red,green,blue        
        alert(colors2);    //red,green,blue,yellow,black,brown

    </script>
</head>
<body>

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