两篇链接内容一模一样,第一个链接也是转载第二个链接的。 第一个是简书的文章。原文是第二个链接。讲的很清楚。 1、https://www.jianshu.com/p/f218f98725a4 2、https://segmentfault.com/a/1190000005713784