let createCar = (color, doors) => ({
color: color, doors: doors});
console.log(createCar("black&
箭头函数的返回值是一个对象字面量,需要将改对象字面量包裹在圆括号中
最新推荐文章于 2022-12-25 21:33:50 发布
let createCar = (color, doors) => ({
color: color, doors: doors});
console.log(createCar("black&