从后台获取的incidents.push报uncaught typeerror: this.football_conduct_list[i].statistics.incidents[h].push is not a function
结构是这样的
从后台获取的incidents.push报uncaught typeerror: this.football_conduct_list[i].statistics.incidents[h].push is not a function
结构是这样的
从图片来看,你的this.football_conduct_list[i].statistics.incidents[h]
明显是个对象而非数组
整句话改成这样也许就行了。。不清楚你的具体需求
this.football_conduct_list[i].statistics.incidents[h].position = data.incident[i].position
10 回答11.1k 阅读
6 回答3k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
3 回答5.1k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
看起来push前面的那一串不像是个数组。