两篇文章,介绍的很清楚。 http://blog.csdn.net/freezingxu/article/details/70919263 https://www.jianshu.com/p/2412d00a0ce4