笔记就先不写了 下面两个bolg讲的很好 http://www.cnblogs.com/dolphin0520/p/3681042.html http://blog.youkuaiyun.com/foxman209/article/details/6787881