这篇写的比较不错:http://blog.csdn.net/chinahaerbin/article/details/38070017 转载于:https://www.cnblogs.com/xiajianwei/p/5387627.html