js 複製物件和陣列的幾種方法. 2018-11-11 254. js中的基本資料型別可以直接進行復制 ... var copy = Object.assign({}, obj); console.log(copy); // { a: 1 }
確定! 回上一頁