控制反转(Inversion of Control,缩写为IoC),是面向对象编程中的一种设计原则,可以用来减低代码之间的耦合度。参考资料 #Inversion of Control Containers and the Dependency Injection pattern, Martin Fowler控制反转,维基百科