参考文档:http://blog.csdn.net/pzasdq/article/details/52754906
http://www.cnblogs.com/manongxiaojiang/archive/2012/10/13/2722068.html