http://www.tuicool.com/articles/J3En2e
我看了这篇,觉得讲得比较清楚,看对你有用没。