vue · 经验 从不搞抽象 2019-01-25 185 阅读1分钟 写法:this.array =(() => { })(); this.statusList = (() => { let arr = []; [...res.data.radioBoxList].map(m => {arr.push(m.value)}); return arr; })();