标签:orange func des 定义 fast ons break 直接 现在
let dessert=‘cake‘,drink=‘orange‘; let food={ dessert:dessert, drink:drink, } console.log(food) //{dessert:‘cake‘,drink:‘orange‘}
let dessert=‘cake‘,drink=‘orange‘; let food={ dessert, drink, } console.log(food) //{dessert:‘cake‘,drink:‘orange‘}
let dessert=‘cake‘,drink=‘orange‘; let food={ dessert, drink, breakfast:function(){} } console.log(food)
let food={ dessert, drink, breakfast(){} } console.log(food) //{dessert:‘cake‘,drink:‘orange‘,breakfast:f}
标签:orange func des 定义 fast ons break 直接 现在
原文地址:https://www.cnblogs.com/fe-cherrydlh/p/11062525.html