提供一个写的通俗易懂的网址https://blog.csdn.net/lonfee88/article/details/6202007 http://www.cnblogs.com/frx666/p/6703023.html