参考文档如下:
http://blog.csdn.net/huiguixian/article/details/6131048
http://www.91xueke.com/2013/04/05/307.htm