如何在映射函数中绑定数组值反应
希望你做得很好,我正在尝试在我的地图函数中绑定数组值,但我没有成功实现我的结果
如果我在地图函数内 {console.log(item)}
hope you are doing great, I am trying to bind array values in my map function but I am unsuccessful in achieving my result
Here is the console result of line number 32 where I am getting data
my screen is looking like this now
if i {console.log(item)} inside the map function
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在这里,您的对象位于一个数组中,因此每当您映射 fdata 数组时,其中就会有另一个数组,因此不要使用 item.name、item. sellPrice,而是使用 item[0].name、itme[0]。售价
Here you are having your object inside an array, so whenever you are mapping the fdata array then inside that there is another array so instead of using, item.name, item.sellingPrice use item[0].name, itme[0].sellingPrice