参考这篇文章:http://weixiaolu.iteye.com/blog/1617440 http://blog.csdn.net/yuyulover/article/details/7278044