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