This commit is contained in:
qianguyihao
2018-04-08 22:41:47 +08:00
parent 5756787f81
commit 7fd06bf252
16 changed files with 84 additions and 18 deletions

View File

@@ -0,0 +1,16 @@
```
var arr = [1, 2, 3];
fun(arr);
console.log(arr);
function fun(a) {
a = [];
}
```
上方代码的打印结果是:[1,2,3]