http://blog.sina.com.cn/s/blog_7812e9860100uujj.html

     详细的解释以及代码……