tongsiying

阅读|运动|自律

0%

函数

1
2
3
4
5
6
7
8
9
var arr = [1, 2, 3];

fun(arr);
console.log(arr);

function fun(a) {
a = [];

}

上方代码的打印结果是:[1,2,3]

赞赏一下吧~