当我试图重复我的数据时,我发现它已将它推入2个节点,如下所示:
{
"type": "Element",
"tagName": "img",
"attributes": {
"src": "https://amc-theatres-res.cloudinary.com/image/upload/f_auto,fl_lossy,h_300,q_auto,w_200/v1/amc-cdn/production/2/movies/45100/45120/Poster/184127R1.JPG",
"alt": "Logan",
"className": [""],
"dataset": {
"reactid": 170
}
},
"children": []
},
{
"type": "Text",
"content": "Logan2 hr 21 min RGet Tickets"
}
类型元素为0 类型文字是1
因此,当我重申它时,它会返回一个罚款和下一个错误...... 如何将它们组合成1个节点?
我已经失去了两天的想法,试图解决这个问题......对js和json来说是新手,我似乎无法让它工作......
谢谢!