详细介绍见 http://apps.hi.baidu.com/share/detail/14083662 代码实现 http://blog.csdn.net/Hashmat/archive/2010/09/23/5902490.aspx