推荐两篇文章 http://blog.csdn.net/ddreaming/article/details/53096411http://blog.csdn.net/shreck66/article/details/49583057