Home
Sign Up
Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
import 不就是依赖注入吗?自己搞依赖注入是不是多此一举
raysaii
·
Feb 23, 2023
· 1553 views
This topic created in 1192 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
·
1677 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 28ms ·
UTC 16:20
·
PVG 00:20
·
LAX 09:20
·
JFK 12:20
♥ Do have faith in what you're doing.
❯