【发布时间】:2021-05-01 03:43:43
【问题描述】:
以下代码有什么问题?我尝试了link 中给出的许多选项。
{
!hideCurrentLocation && (
{currentLocation?.city}
{currentLocation?.city && ', '}
{currentLocation?.country_code2}
)
}
{currentLocation?.city} 行出现错误提示需要逗号。
【问题讨论】:
标签: javascript html reactjs jsx