请参考下面两个博客,个人觉得挺好的 http://blog.csdn.net/zyh821351004/article/details/52143309点击打开链接 点击打开链接http://blog.csdn.net/yiranhaiziqi/article/details/53308657