const appRoutes: Routes = [
{ path: 'crisis-center',
component: CrisisListComponent
},
//....
];
这里 appRoutes: Routes 是什么意思,看不懂,求解,谢谢!
const appRoutes: Routes = [
{ path: 'crisis-center',
component: CrisisListComponent
},
//....
];
这里 appRoutes: Routes 是什么意思,看不懂,求解,谢谢!
13 回答13k 阅读
7 回答2.1k 阅读
3 回答1.3k 阅读✓ 已解决
3 回答903 阅读✓ 已解决
6 回答1.2k 阅读✓ 已解决
2 回答1.4k 阅读✓ 已解决
4 回答1.3k 阅读✓ 已解决
这个是Typescript的语法,定义了一个常量appRoutes,类型是Routes。 可以看下typescript的语法