//解构对象 function breakfast(){ return {dessert:'面包',tea:'绿茶',fruit:'梨子'}; } let {dessert:dessertt,tea:teat,fruit:fruitt} = breakfast(); console.log(dessertt,teat,fruitt);