sidebarDepth categories tags 0 TypeScript TSLint TypeScript object-literal-key-quotes 索引类型的对象,需要引号的key 必须使用引号,不需要引号的key 一定不加引号。 let obj = { 'foo': 'foo', 'b-ar': 'bar' }; let obj = { foo: 'foo', 'b-ar': 'bar' };