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