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

详细的解释以及代码