1、ES6表达式声明对象的属性名(对于动态赋值时有用处): const temp = 'hello' const tempObj = { [temp]: 'hello', ['wor' + 'ld']: 'world' } console.log({ tempObj }) // { tempObj: { hello: 'hello', world: 'world' } } 2、ES6表达式声明方法名: const helloObj = { ['H' + 'ello']() { return 'Hello' } } console.log(helloObj.Hello()) // Hello