"Cannot read property 'length' of undefined"報錯處理

vue2 「Cannot read property ‘length’ of undefined」 最近在項目中總是遇見報錯"length of undefined"的問題,因爲項目的需要要顯示存在的個數,所以通過length來進行求職 this.projectReportSumNum = val.reportArray.length; 雖然界面可以顯示length數據,但是控制檯肥腸傲嬌一直報錯
相關文章
相關標籤/搜索