var arr = [1] arr.push(2) console.log(arr) //[1, 2] // object type 下執行原生function,就會改變到原本位址的值。 在ES6 const 常數的宣告也是一樣的 const obj = { ...
確定! 回上一頁