let Tarot = {
TheFool: "愚者",
TheMagician: 1,
TheLeangle: [1, 2, 3, 4, 5]
}
- 对象得扩展运算符用于取出参数对象的所有可遍历的属性,拷贝到当前对象之中。
let Marseilles = {
...Tarot}
console.log(Marseilles);
//{
//
let Tarot = {
TheFool: "愚者",
TheMagician: 1,
TheLeangle: [1, 2, 3, 4, 5]
}
let Marseilles = {
...Tarot}
console.log(Marseilles);
//{
//