你在里面散布一个数组{}。这将创建一个以数组索引作为键的对象。这就是为什么你得到{0: 1, 1: 2, 2: 3}const a = [ 1, 2 ]console.log({ ...a })如果要将属性放入变量,这是正确的语法:const { propertyName } = yourObject// if you want to have a variable name which is different than the propertyNameconst { propertyName: someOtherVariable } = yourObject这是工作片段:const obj = {'id': 1, a: [1, 2, 3] }const { a: arr } = obj; // this is same as: const arr = obj.aconsole.log(arr)