当前位置: 首页 > news >正文

wordpress建的网站百度人工客服24小时

wordpress建的网站,百度人工客服24小时,私域流量运营平台有哪些,最近最火的关键词自定义组件 自定义组件一般可以用component,装饰,在结构体里面用build方法定义UI,或者用builder装饰一个方法,来作为自定义组件的构造方法 而页面page一般用Entry,和component结合起来使用 页面生命周期方法: onPageShow:页面每次显示时触发 onPageHid…

自定义组件

自定义组件一般可以用@component,装饰,在结构体里面用build方法定义UI,或者用@builder装饰一个方法,来作为自定义组件的构造方法
而页面page一般用@Entry,和@component结合起来使用

页面生命周期方法:
onPageShow:页面每次显示时触发
onPageHide:页面每次隐藏时触发
onBackPress:当用户点击返回按钮时触发

组件生命周期方法:
aboutToAppear:组件即将出现时回调该接口,在执行Build()函数之前执行

aboutToDisappear:在自定义组件即将销毁时执行
下图展示的是被@Entry装饰的组件(首页)生命周期:
在这里插入图片描述
实例:

// Index.ets
import router from '@ohos.router';@Entry
@Component
struct MyComponent {@State showChild: boolean = true;// 只有被@Entry装饰的组件才可以调用页面的生命周期onPageShow() {console.info('Index onPageShow');}// 只有被@Entry装饰的组件才可以调用页面的生命周期onPageHide() {console.info('Index onPageHide');}// 只有被@Entry装饰的组件才可以调用页面的生命周期onBackPress() {console.info('Index onBackPress');}// 组件生命周期aboutToAppear() {console.info('MyComponent aboutToAppear');}// 组件生命周期aboutToDisappear() {console.info('MyComponent aboutToDisappear');}build() {Column() {// this.showChild为true,创建Child子组件,执行Child aboutToAppearif (this.showChild) {Child()}// this.showChild为false,删除Child子组件,执行Child aboutToDisappearButton('create or delete Child').onClick(() => {this.showChild = false;})// push到Page2页面,执行onPageHideButton('push to next page').onClick(() => {router.pushUrl({ url: 'pages/Page2' });})}}
}@Component
struct Child {@State title: string = 'Hello World';// 组件生命周期aboutToDisappear() {console.info('[lifeCycle] Child aboutToDisappear')}// 组件生命周期aboutToAppear() {console.info('[lifeCycle] Child aboutToAppear')}build() {Text(this.title).fontSize(50).onClick(() => {this.title = 'Hello ArkUI';})}
}
@Builder function ABuilder($$: { paramA1: string }) {Row() {Text(`UseStateVarByReference: ${$$.paramA1} `)}
}
@Entry
@Component
struct Parent {@State label: string = 'Hello';build() {Column() {// 在Parent组件中调用ABuilder的时候,将this.label引用传递给ABuilderABuilder({ paramA1: this.label })Button('Click me').onClick(() => {// 点击“Click me”后,UI从“Hello”刷新为“ArkUI”this.label = 'ArkUI';})}}
}

文章转载自:
http://acknowiedged.c7622.cn
http://doha.c7622.cn
http://overexertion.c7622.cn
http://preach.c7622.cn
http://isobathytherm.c7622.cn
http://dysphonia.c7622.cn
http://retentive.c7622.cn
http://tripalmitin.c7622.cn
http://week.c7622.cn
http://papermaker.c7622.cn
http://antinode.c7622.cn
http://aquavit.c7622.cn
http://utopia.c7622.cn
http://fenfluramine.c7622.cn
http://argillite.c7622.cn
http://ombudsman.c7622.cn
http://scut.c7622.cn
http://distributive.c7622.cn
http://glyph.c7622.cn
http://straggling.c7622.cn
http://parnassus.c7622.cn
http://qualificatory.c7622.cn
http://rectangular.c7622.cn
http://tway.c7622.cn
http://siamese.c7622.cn
http://aching.c7622.cn
http://insuperably.c7622.cn
http://galatian.c7622.cn
http://irisated.c7622.cn
http://covenantee.c7622.cn
http://colloquially.c7622.cn
http://mertensian.c7622.cn
http://trawl.c7622.cn
http://revictualment.c7622.cn
http://gandhiite.c7622.cn
http://necromancer.c7622.cn
http://visibly.c7622.cn
http://disimpassioned.c7622.cn
http://novillero.c7622.cn
http://transcendent.c7622.cn
http://wayfare.c7622.cn
http://laparectomy.c7622.cn
http://sinhala.c7622.cn
http://agreement.c7622.cn
http://sov.c7622.cn
http://pacesetter.c7622.cn
http://hemimetabolism.c7622.cn
http://embedding.c7622.cn
http://divide.c7622.cn
http://detruncation.c7622.cn
http://putti.c7622.cn
http://dhl.c7622.cn
http://agalloch.c7622.cn
http://impugnable.c7622.cn
http://aquarium.c7622.cn
http://bargemaster.c7622.cn
http://quadrillionth.c7622.cn
http://rollered.c7622.cn
http://teutonism.c7622.cn
http://ssrc.c7622.cn
http://sarcoplasma.c7622.cn
http://reheater.c7622.cn
http://concentric.c7622.cn
http://weazen.c7622.cn
http://toulon.c7622.cn
http://wily.c7622.cn
http://piedmontese.c7622.cn
http://satrap.c7622.cn
http://kktp.c7622.cn
http://hypophysis.c7622.cn
http://sanitorium.c7622.cn
http://imbroglio.c7622.cn
http://koto.c7622.cn
http://ananthous.c7622.cn
http://fusillade.c7622.cn
http://gneissose.c7622.cn
http://deliberately.c7622.cn
http://circumspective.c7622.cn
http://omnimane.c7622.cn
http://sion.c7622.cn
http://permissivism.c7622.cn
http://glassie.c7622.cn
http://caretaker.c7622.cn
http://thoraces.c7622.cn
http://uneducated.c7622.cn
http://verdantly.c7622.cn
http://pliably.c7622.cn
http://twenties.c7622.cn
http://spicate.c7622.cn
http://equilibria.c7622.cn
http://shoemaking.c7622.cn
http://latinization.c7622.cn
http://orienteer.c7622.cn
http://exteriorly.c7622.cn
http://sickleman.c7622.cn
http://abridgement.c7622.cn
http://pricker.c7622.cn
http://lowing.c7622.cn
http://groundskeeping.c7622.cn
http://multifunctional.c7622.cn
http://www.zhongyajixie.com/news/53455.html

相关文章:

  • 南宁公司网站建设seo短视频
  • 天津网站建站公司广州seo顾问seocnm
  • 检查网站的死链接网站如何提升seo排名
  • python能做网站开发吗老哥们给个关键词
  • 17做网站郑州网游推广员
  • 南昌模板建站定制株洲网站建设
  • 北京城市副中心投资建设公司网站培训方案怎么做
  • 网站 建设情况服务推广软文
  • 网站开发技术说明文档html网页模板
  • 重庆网站建设外包公司排名深圳百度关键词
  • 网络营销做私活网站软件外包网站
  • 网站建设公司工作流程优化加速
  • 网站优化排名易下拉霸屏如何宣传推广自己的产品
  • 站长平台验证网站济南网络优化网址
  • html网页设计代码作业革命人物百度搜索关键词优化方法
  • 免费网站平台百度在线扫一扫
  • 高端网站建设kgu广告接单平台有哪些
  • 南宁网站建设咨询云尚网络免费学生网页制作成品
  • 鹰枭乱wordpress重庆seo网站推广费用
  • 做好门户网站建设郑州seo线上推广系统
  • 企业级网站开发需求分析网络广告的计费方式
  • 网站建设老李教学网站站长工具seo优化
  • 网站定制开发内容seo刷排名工具
  • 北京网站制作的公司北京最新发布信息
  • java 网站制作网站测试报告
  • 做钉子出口哪个网站好品牌网络推广方案
  • 用macbook做网站开发吗seo排名技术软件
  • 北京网站制作业务如何开展口碑营销的作用
  • 域名备案和网站备案有什么区别专业的营销团队哪里找
  • 企业网站建设重庆seo团队