[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fheK5IADBZE4A56AUl2xis0lTdtuRxD5N3GYqfwm6JAE":3},{"id":4,"source":5,"question":6,"options":7,"answer":12,"related":13,"type":24,"origin":104,"createTime":26},135858947,"v1","某开发者想测试一下@Preview作用的组件,编写了如下代码,以下哪一项是在组件模式预览的内容? @Entry @Component struct index { @State message: string = 'Hello World' build() { Row() { Column() { test1() test2() Text(this.message) .fontSize(50) .fontWeight(FontWeight.Bold) } .width('100%') } .height('100%') } } @Preview @Component struct test1{ build(){ Text(\"你好HarmonyOS\") .fontColor(Color.Blue) .fontSize(30) } } @Component struct test2{ build(){ Text(\"开始学习吧\") .fontColor(Color.Red) .fontSize(30) } }",[8,9,10,11],"你好HarmonyOS","Hello World","你好HarmonyOS开始学习吧","开始学习吧",[],[14,27,33,43,53,57,64,74,84,94],{"id":15,"source":5,"question":16,"options":17,"answer":22,"related":23,"type":24,"origin":25,"createTime":26},135858943,"下列哪种组合方式可以实现子组件从父子组件单向状态同步",[18,19,20,21],"@State和@Link","@Provide和@Consume","@State和@Prop","@Observed和@ObjectLink",[],[],0,null,"2024-03-27T17:02:20+08:00",{"id":28,"source":5,"question":29,"options":30,"answer":31,"related":32,"type":24,"origin":25,"createTime":26},135858944,"下列哪种组合方式不能实现子组件从父子组件之间双向数据同步",[20,21,19,18],[],[],{"id":34,"source":5,"question":35,"options":36,"answer":41,"related":42,"type":24,"origin":25,"createTime":26},135858945,"用哪一种装饰器修饰的组件可作为页面入口组件",[37,38,39,40],"@Preview","@Builder","@Entry","@Component",[],[],{"id":44,"source":5,"question":45,"options":46,"answer":51,"related":52,"type":24,"origin":25,"createTime":26},135858946,"关于@State状态数据特征,下列描述错误的是()",[47,48,49,50],"@State变量可以不用给定初始值","标记为@State的属性是私有变量,只能在组件内访问","@State装饰的变量是组件内部的状态数据,当这些状态数据被修改时,将会调用所在组件的build方法进行UI刷新","子组件@Link装饰的变量可以和父组件的@State变量建立双向数据绑定",[],[],{"id":4,"source":5,"question":6,"options":54,"answer":55,"related":56,"type":24,"origin":25,"createTime":26},[8,9,10,11],[],[],{"id":58,"source":5,"question":59,"options":60,"answer":62,"related":63,"type":24,"origin":25,"createTime":26},135858948,"用哪一种装饰器可实现组件预览的功能",[40,37,61,38],"@State",[],[],{"id":65,"source":5,"question":66,"options":67,"answer":72,"related":73,"type":24,"origin":25,"createTime":26},135858949,"开发者在开发应用时,会为组件配置属性,如fontSize()、width()、height()、color()等,在DevEco Studio工具中通过以下哪种方式在组件后配置UI的属性",[68,69,70,71],"#","&","","*",[],[],{"id":75,"source":5,"question":76,"options":77,"answer":82,"related":83,"type":24,"origin":25,"createTime":26},135858950,"某开发者自定义了test1组件,代码如下,如果在其他组件内进行调用test1,下列选项中正确的是哪一项? @Component struct test1{ build(){ Text(\"你好HarmonyOS\") .fontColor(Color.Blue) .fontSize(30) } }",[78,79,80,81],"@Component test1()","test1","test1()",".test1()",[],[],{"id":85,"source":5,"question":86,"options":87,"answer":92,"related":93,"type":24,"origin":25,"createTime":26},135858951,"某开发者构建了两个自定义组件btton1,btton2.以下哪一项代码填入横线处可以使自定义组件正确被调用? @Entry @Component struct Index { @State message: string = '欢迎学习' build() { Row() { Column() { ______ Text(this.message) .fontSize(50) .fontWeight(FontWeight.Bold) ______ } .width('100%') } .height('100%') } }",[88,89,90,91],"Button1;Button2",".Button1;.Button2",".button1;.button2","button1();button2()",[],[],{"id":95,"source":5,"question":96,"options":97,"answer":102,"related":103,"type":24,"origin":25,"createTime":26},135858952,"以下哪一项生命周期回调函数会在创建自定义组件的新实例后,在执行其build函数之前执行",[98,99,100,101],"onBackPress()","onPageShow()","aboutToDisappear()","aboutToAppear()",[],[],{"courseName":105,"courseImg":106,"workName":107,"workId":108,"count":109,"courseId":110},"移动应用开发（鸿蒙）","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F9c1e48361b00f3ee2086f4e259ed792b.jpg","ArkTS语言基础","work_33685854",50,"1996140d7a47dd98e4ca41ffc5846a35"]