参照博客: http://www.cnblogs.com/linzheng/news/2011/07/14/2106530.html。 http://blog.csdn.net/dongxinxi/article/details/6303421