此時,repo 就不再是由Presenter 產生出來的,而是由外部注入進來,而這個行為,就叫做Dependency Injection。 兩種常用的DI:建構子、setter. 使用DI 的好處. 總結以下四 ...
確定! 回上一頁