📅  最后修改于: 2022-03-11 15:01:26.947000             🧑  作者: Mango
const food = { beef: 'b', bacon: 'a' }
// "Spread"
{ ...food }
// "Object.assign"
Object.assign({}, food)
// "JSON"
JSON.parse(JSON.stringify(food))