请参考这两个文章。 http://blog.csdn.net/yingxiake/article/details/51260302 http://wiselyman.iteye.com/blog/2184586