let str="天青色等煙雨,而我再等你。"; let str2=str.replace("你",<Text style={{color:"#ff0000"}}>豬</Text>);此時(shí)str2的值為:天青色等煙雨,而我再等[object Object]。而不是想要的結(jié)果。
react native 無(wú)法渲染變量里的組件?
海綿寶寶撒
2018-12-27 18:14:25