转自:https://blog.csdn.net/zxt1195229475/article/details/79097038 es6中reduce()方法,转自https://blog.csdn.net/qq_41702660/article/details/81949459