var arr = [1, 2, 3];

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

    function fun(a) {
        a = [];

    }

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

results matching ""

    No results matching ""