一,IOC控制反转,DL依赖注入 //场景 class a { name: string constructor(/*name:string*/) { //强耦合 this.name = "张三" } } class b { name: string