什么是控制反转 IoC?

index > programming > design

Library 提供一堆的函数,你能自由地安排函数调用的顺序;Framework 具有扩展性,它让你提供回调函数,你没法控制函数调用的顺序,这就是所谓的 Inversion of Control (转自湾区日报