两篇好的文章:http://blog.csdn.net/newjueqi/article/details/6679857
http://blog.csdn.net/buguyiqie/article/details/4948213#t9