for(let ii in this.listData){ console.log("提交前數據",ii) try{ this.listData[ii].forEach((el,ind) => { if(el.exceptionObj.isSave && el.itemName == ''){ nullName = ""; throw new Error(Toast("請輸入名稱")) } }) }catch(err){ } } 方法: try{
throw new Error(Toast("請輸入名稱"))
}catch(){
}
從啥也不會開始吧
浙公網安備 33010602011771號