中国优质的IT技术网站
专业IT技术创作平台
IT职业在线教育平台
微信扫码分享
@Entry @Component struct Index { @State message: string|null = null; build() { Row() { Column() { if (this.message === null || this.message === ""){ Text("ddd") .fontSize(50) .fontWeight(FontWeight.Bold) }else { Text("ewrwerwer") .fontSize(50) .fontWeight(FontWeight.Bold) } } .width('100%') } .height('100%') } }