[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fn3DEMS1hhIvKacLV8HXvFucydbie7C7upKMZPHs8Lo8":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":13,"question":20,"related":21,"source":31,"type":83},[],"2025-03-29 21:55:53",180838740,[8,9,10,11,12],"aboutToAppear","aboutToDisappear","onPageShow","onPageHide","onBackPress",{"count":14,"courseId":15,"courseImg":16,"courseName":17,"workId":18,"workName":19},11,"5f8111a6ef6a8b79dafc295b847b1bc9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F9c1e48361b00f3ee2086f4e259ed792b.jpg","混合式移动App开发","work_41392667","第2章 ArkTS语言","下面哪些函数是自定义组件的生命周期函数?( )",[22,33,42,51,60,69,74,84,93,102],{"answer":23,"createTime":5,"id":24,"options":25,"question":30,"source":31,"type":32},[],180838725,[26,27,28,29],"int a = 10","var a = 10","let a: number = 10","number a = 10","下面属于ArkTS中正确使用变量声明的语句是?( )","v1",0,{"answer":34,"createTime":5,"id":35,"options":36,"question":41,"source":31,"type":32},[],180838726,[37,38,39,40],"func printInfo(){}","def printInfo()","void printInfo(){}","function printInfo() {}","下面属于ArkTS函数声明的语句的是?( )",{"answer":43,"createTime":5,"id":44,"options":45,"question":50,"source":31,"type":32},[],180838727,[46,47,48,49],"arr表示数据源,为Array类型的数组,为必选参数","arr可以设置为空数组,此时不会创建子组件","itemGenerator为数组中的每个元素创建对应的组件,为必选参数","keyGenerator为数据源arr的每个数组项生成唯一且持久的键值,为必选参数","下列关于ForEach循环渲染语法中参数说法错误的是?( )",{"answer":52,"createTime":5,"id":53,"options":54,"question":59,"source":31,"type":32},[],180838728,[55,56,57,58],"if、else if后跟随的条件语句不可以使用状态变量","允许在容器组件内使用,通过条件渲染语句构建不同的子组件","当父组件和子组件之间存在一个或多个if语句时,必须遵守父组件关于子组件使用的规则","支持if、else和else if语句","下列关于if\u002Felse条件渲染说法错误的是?( )",{"answer":61,"createTime":5,"id":62,"options":63,"question":68,"source":31,"type":32},[],180838730,[64,65,66,67],"@Component","@Entry","@Builder","@Preview","用哪一种装饰器修饰的struct表示该结构体具有组件化能力?( )",{"answer":70,"createTime":5,"id":71,"options":72,"question":73,"source":31,"type":32},[],180838732,[64,65,66,67],"用哪一种装饰器修饰的自定义组件可作为页面入口组件?( )",{"answer":75,"createTime":5,"id":76,"options":77,"question":82,"source":31,"type":83},[],180838734,[78,79,80,81],"let x: number = null","let x: number | null = null","let y: string = null","let y: string = 100","下面示例中会导致编译报错的有?( )",1,{"answer":85,"createTime":5,"id":86,"options":87,"question":92,"source":31,"type":83},[],180838736,[88,89,90,91],"string","boolean","number","Object","下面属于ArkTS基础类型的是?( )",{"answer":94,"createTime":5,"id":95,"options":96,"question":101,"source":31,"type":83},[],180838738,[97,98,99,100],"fontSize()","onClick()","width()","height()","下面哪些属于属性方法?( )",{"answer":103,"createTime":5,"id":6,"options":104,"question":20,"source":31,"type":83},[],[8,9,10,11,12]]