vue · 经验

185 阅读1分钟
  • 写法:this.array =(() => { })();
  this.statusList = (() => {
    let arr = [];
    [...res.data.radioBoxList].map(m => {arr.push(m.value)});
    return arr;
  })();