cosnt {...a,b,obj} = obj1 点赞侠01 2023-07-18 77 阅读1分钟 const obj1 = { a:123, b:456, c:789, d:111, e:222, f:333 } const {a,b,c,obj} = obj1 console.log(a,b,c,obj) // 123 456 789 {d:111,e:222,f:333}