我们可以很容易的编写一个service ,并将其通过DI注入到Component 或别的service 中去。 // a.service.ts. @Injectable({}). class ServiceA {.
確定! 回上一頁