参考文档
https://www.jianshu.com/p/327d88284abb
http://blog.csdn.net/zhy13087344578/article/details/60745667