Type Cast The {item.price} to { Math.floor(item.price) }

前端 未结 0 1686
灰色年华
灰色年华 2020-12-25 12:05

You need to parse the item price as a number or it CAN render sometimes as an ordinary string and will be unable to compute

相关标签:
回答
  • 消灭零回复
提交回复
热议问题