{
this.state.show&&<Text>ww</Text>
}
当第一个为true时,将返回第二个
当第一个为false时,整体为false
rn &&操作符实现三元效果
猜你喜欢
转载自blog.csdn.net/weixin_43294560/article/details/108420921
今日推荐
周排行