Home
Sign Up
Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
import 不就是依赖注入吗?自己搞依赖注入是不是多此一举
raysaii
·
Feb 23, 2023
· 1517 views
This topic created in 1174 days ago, the information mentioned may be changed or developed.
注入
import
依赖
多此一举
1 replies
1
noe132
Feb 23, 2023
我的理解:依赖注入通常是有多个 context ,每个 context 需要不同的实例对象。OOP 用的比较多,composition 用的比较少
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
1219 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 34ms ·
UTC 17:31
·
PVG 01:31
·
LAX 10:31
·
JFK 13:31
♥ Do have faith in what you're doing.
❯