<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>数组复制</title>
</head>
<body>
<script type="text/javascript">
var arr1 = [1,3,5,6,7];
var arr2 = arr1.concat([]);
arr2.push(10,50);
alert(arr2);
alert(arr1);
</script>
</body>
</html>