参照:http://blog.chinaunix.net/uid-26200547-id-3410003.html http://www.cnblogs.com/coder2012/archive/2013/05/25/3096631.html