参考1: http://www.cnblogs.com/coolszy/archive/2012/04/27/2474279.html 参考2: http://blog.csdn.net/furongkang/article/details/6886526