参考以下博客: http://www.cnblogs.com/BeyondAnyTime/p/3204119.html http://blog.csdn.net/stonecao/article/details/6425019