var a = {a:1,b:2,c:3}
var {
  a,
  ...test
} = a
console.log(test) //{b: 2, c: 3}
posted on 2020-03-30 11:00  佑之以航  阅读(168)  评论(0编辑  收藏  举报