从后台获取的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.7k 阅读
2 回答3.2k 阅读✓ 已解决
2 回答4.2k 阅读✓ 已解决
4 回答4.6k 阅读✓ 已解决
3 回答1.9k 阅读✓ 已解决
4 回答2.1k 阅读✓ 已解决
2 回答1.7k 阅读✓ 已解决
看起来push前面的那一串不像是个数组。