传送门: http://blog.jobbole.com/94475 http://blog.youkuaiyun.com/phpkernel/article/details/5714302 其余的看源码就行了。