...和map组数据的实用方法

                this.items = ret.map((v, i) => {
                  v.name = decodeURIComponent(v.name)
                  return {
                    no: i + 1,
                    ...v
                  }
                })

猜你喜欢

转载自blog.csdn.net/WDCCSDN/article/details/84795358