为什么我不能dinner
以这种方式将对象的属性分配给对象的属性obj
?
let dinner = {
drink: 'cola',
food: 'cake'
};
let obj = {};
{obj.one, obj.two} = dinner;
为什么我不能dinner
以这种方式将对象的属性分配给对象的属性obj
?
let dinner = {
drink: 'cola',
food: 'cake'
};
let obj = {};
{obj.one, obj.two} = dinner;