4
在下面的代码块heros
包裹有花括号:用大括号包裹的Typescript返回值?
export class InMemoryDataService implements InMemoryDbService {
createDb() {
let heroes = [
{id: 11, name: 'Mr. Nice'},
{id: 12, name: 'Narco'},
...
];
return {heroes};
}
}
在具体原因?