浅拷贝

  • Object.assign()
  • 扩展运算符…
  • 数组的concat方法
  • 数组的slice方法
  • for…in
  • $.extends()

    深拷贝

  • JSON.stringify()

  • $.extends()
  • 手写