两篇优秀的文章:http://blog.youkuaiyun.com/tangcx/archive/2008/07/17/2664727.aspx http://blog.youkuaiyun.com/tangcx/archive/2008/07/14/2650221.aspx