美文网首页
react native x循环

react native x循环

作者: 追逐繁星的阿忠 | 来源:发表于2020-09-22 10:09 被阅读0次

{
                                                        list.activityList.map((n, m) => {
                                                            return (
                                                                n.activityType == 1 ?
                                                                    <Text style={style.seconds}>秒</Text>
                                                                    :
                                                                    n.activityType == 2 ?
                                                                        <Text style={style.keep}>保</Text>
                                                                        :
                                                                        n.activityType == 3 ?
                                                                            <Text style={style.very}>特</Text>
                                                                            :
                                                                            null
                                                            );
                                                        })
                                                    }

相关文章

网友评论

      本文标题:react native x循环

      本文链接:https://www.haomeiwen.com/subject/seoiyktx.html