参考了几个大神的blog 算是学习了 http://blog.csdn.net/stonecao/article/details/6759189 http://www.cnblogs.com/thinear/archive/2012/08/05/2613292.html