× TypeError: Cannot read property 'map' of undefined
来源:7-12 Ajax获取推荐数据
CaNg_7
2019-11-22
class Header extends Component {
getListArea = () => {
const { focused, list } = this.props;
console.log(list);
if (focused) {
return (
热门搜索换一批
{list.map(item => {
return {item};
})}
);
}
};
写回答
1回答
-
Dell
2019-11-23
list不是一个数组?
062021-06-29
相似问题