Refer to the following article to understand:
https://www.jianshu.com/p/1af66a499f49
https://www.cnblogs.com/wmyskxz/p/8824597.html