React - JSX三元表达式

 render: (status) =>
            (String(status) === '0'
                    ?
                    (<span><img src={xiafazhong} alt='下发中'/>下发中 </span>)
                    :
                    (<span><img src={bukongzhong} alt='布控中'/>布控中</span>)
            )
posted @ 2024-06-13 17:51  Felix_Openmind  阅读(5)  评论(0编辑  收藏  举报