摘要: const NAME = "Matt"; TypeScript is telling us we can't redeclare the name variable because it has already been declared inside of lib.dom.d.ts. The in 阅读全文
posted @ 2024-01-23 21:32 Zhentiw 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Example code: const routingConfig = { routes: [ { path: "home", component: "HomeComponent", }, { path: "about", component: 12, }, { path: "contact", c 阅读全文
posted @ 2024-01-23 21:16 Zhentiw 阅读(2) 评论(0) 推荐(0) 编辑
摘要: Creational patterns provide object creation mechanisms that increase flexibility and reuse of existing code. Factory method: Provides an interface for 阅读全文
posted @ 2024-01-23 15:11 Zhentiw 阅读(5) 评论(0) 推荐(0) 编辑