参考链接:http://blog.csdn.net/huangaigang6688/article/details/7761310
http://www.cnblogs.com/jyh317/p/3691842.html