参考资料: http://www.cnblogs.com/yangxt90/articles/9021530.html http://www.cnblogs.com/wupeiqi/articles/6229292.html