这是我觉得写得比较简单易懂的两篇博客: http://blog.youkuaiyun.com/xwren362922604/article/details/17190061(这个容易) http://www.cnblogs.com/tangbinblog/p/3972318.html