http://www.oschina.net/code/snippet_995588_18859 转载于:https://www.cnblogs.com/cool7/archive/2013/04/30/3052132.html