- 寫法:this.array =(() => { })();
this.statusList = (() => {
let arr = [];
[...res.data.radioBoxList].map(m => {arr.push(m.value)});
return arr;
})();
複製程式碼
this.statusList = (() => {
let arr = [];
[...res.data.radioBoxList].map(m => {arr.push(m.value)});
return arr;
})();
複製程式碼