复制1const shape = { 2 radius: 10, 3 diameter() { 4 return this.radius * 2 5 }, 6 perimeter: () => 2 * Math.PI * this.radius 7} 8 9console.log(shape.diameter()) 10console.log(shape.perimeter())
1const shape = { 2 radius: 10, 3 diameter() { 4 return this.radius * 2 5 }, 6 perimeter: () => 2 * Math.PI * this.radius 7} 8 9console.log(shape.diameter()) 10console.log(shape.perimeter())
本题为“单选题”
题库维护不易,您的支持就是我们最大的动力!