http://www.cnblogs.com/wuchang/archive/2010/01/29/1658916.html 写的很详细了。 转载于:https://www.cnblogs.com/yuanhuaming/archive/2010/03/18/1688983.html