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

备案网站怎么做百度直接打开

备案网站怎么做,百度直接打开,网站可不可以不添加源码直接添加模板,网页开发的流程或者步骤是什么动态设置组件的属性,支持开发者在属性设置时使用if/else语法,且根据需要使用多态样式设置属性。 说明: 从API Version 11开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。 attributeModifier attributeMo…

动态设置组件的属性,支持开发者在属性设置时使用if/else语法,且根据需要使用多态样式设置属性。

说明:

从API Version 11开始支持。后续版本如有新增内容,则采用上角标单独标记该内容的起始版本。

attributeModifier

attributeModifier(modifier: AttributeModifier<T>)

动态设置组件的属性方法。

系统能力: SystemCapability.ArkUI.ArkUI.Full

参数:

参数名类型必填说明
modifierAttributeModifier<T>在当前组件上,动态设置属性方法,支持使用if/else语法。
modifier: 属性修改器,开发者需要自定义class实现AttributeModifier接口。

AttributeModifier<T>

开发者需要自定义class实现AttributeModifier接口。

applyNormalAttribute

applyNormalAttribute(instance: T) : void

组件普通状态时的样式。

applyPressedAttribute

applyPressedAttribute(instance: T) : void

组件按压状态的样式。

applyFocusedAttribute

applyFocusedAttribute(instance: T) : void

组件获焦状态的样式。

applyDisabledAttribute

applyDisabledAttribute(instance: T) : void

组件禁用状态的样式。

applySelectedAttribute

applySelectedAttribute(instance: T) : void

组件选中状态的样式

开发者可根据需要自定义实现这些方法,通过传入的参数识别组件类型,对instance设置属性,支持使用if/else语法进行动态设置。

参数

参数描述
instance组件的属性类,用来标识进行属性设置的组件的类型,比如Button组件的ButtonAttribute,Text组件的TextAttribute等。

instance参数支持范围:

AlphabetIndexerAttribute、BadgeAttribute、BlankAttribute、ButtonAttribute、CalendarPickerAttribute、CanvasAttribute、CheckboxAttribute、CheckboxGroupAttribute、CircleAttribute、ColumnAttribute、ColumnSplitAttribute、ShapeAttribute、CommonAttribute、CounterAttribute、DataPanelAttribute、DatePickerAttribute、DividerAttribute、EffectComponentAttribute、EllipseAttribute、FlexAttribute、FlowItemAttribute、FormComponentAttribute、FormLinkAttribute、GaugeAttribute、GridAttribute、GridColAttribute、ColumnAttribute、GridItemAttribute、GridRowAttribute、HyperlinkAttribute、ImageAttribute、ImageAnimatorAttribute、ImageSpanAttribute、LineAttribute、ListAttribute、ListItemAttribute、ListItemGroupAttribute、LoadingProgressAttribute、MarqueeAttribute、MenuAttribute、MenuItemAttribute、MenuItemGroupAttribute、NavDestinationAttribute、NavigationAttribute、NavigatorAttribute、NavRouterAttribute、PanelAttribute、PathAttribute、PatternLockAttribute、PluginComponentAttribute、PolygonAttribute、PolylineAttribute、ProgressAttribute、QRCodeAttribute、RadioAttribute、RatingAttribute、RectAttribute、RefreshAttribute、RelativeContainerAttribute、RemoteWindowAttribute、RichEditorAttribute、RichTextAttribute、RowAttribute、RowSplitAttribute、ScrollAttribute、ScrollBarAttribute、SearchAttribute、SelectAttribute、ShapeAttribute、SideBarContainerAttribute、SliderAttribute、SpanAttribute、StackAttribute、StepperAttribute、StepperItemAttribute、SwiperAttribute、TabContentAttribute、TabsAttribute、TextAttribute、TextAreaAttribute、TextClockAttribute、TextInputAttribute、TextPickerAttribute、TextTimerAttribute、TimePickerAttribute、ToggleAttribute、UIExtensionComponentAttribute、VideoAttribute、WaterFlowAttribute、WebAttribute、XComponentAttribute

属性支持范围:

不支持入参为CustomBuilder或Lamda表达式的属性,且不支持事件和手势。

示例

// xxx.ets
class MyButtonModifier implements AttributeModifier<ButtonAttribute> {isDark: boolean = falseapplyNormalAttribute(instance: ButtonAttribute): void {if (this.isDark) {instance.backgroundColor(Color.Black)} else {instance.backgroundColor(Color.Red)}}
}@Entry
@Component
struct attributeDemo {@State modifier: MyButtonModifier = new MyButtonModifier()build() {Row() {Column() {Button("Button").attributeModifier(this.modifier).onClick(() => {this.modifier.isDark = !this.modifier.isDark})}.width('100%')}.height('100%')}
}

attributeModifier_ifelse

// xxx.ets
class MyButtonModifier implements AttributeModifier<ButtonAttribute> {applyNormalAttribute(instance: ButtonAttribute): void {instance.backgroundColor(Color.Black)}applyPressedAttribute(instance: ButtonAttribute): void {instance.backgroundColor(Color.Red)}
}@Entry
@Component
struct attributePressedDemo {@State modifier: MyButtonModifier = new MyButtonModifier()build() {Row() {Column() {Button("Button").attributeModifier(this.modifier)}.width('100%')}.height('100%')}
}

attributeModifier_ifelse

最后,有很多小伙伴不知道学习哪些鸿蒙开发技术?不知道需要重点掌握哪些鸿蒙应用开发知识点?而且学习时频繁踩坑,最终浪费大量时间。所以有一份实用的鸿蒙(Harmony NEXT)资料用来跟着学习是非常有必要的。 

这份鸿蒙(Harmony NEXT)资料包含了鸿蒙开发必掌握的核心知识要点,内容包含了ArkTS、ArkUI开发组件、Stage模型、多端部署、分布式应用开发、音频、视频、WebGL、OpenHarmony多媒体技术、Napi组件、OpenHarmony内核、Harmony南向开发、鸿蒙项目实战等等)鸿蒙(Harmony NEXT)技术知识点。

希望这一份鸿蒙学习资料能够给大家带来帮助,有需要的小伙伴自行领取,限时开源,先到先得~无套路领取!!

 获取这份完整版高清学习路线,请点击→纯血版全套鸿蒙HarmonyOS学习资料

鸿蒙(Harmony NEXT)最新学习路线

  •  HarmonOS基础技能

  • HarmonOS就业必备技能 
  •  HarmonOS多媒体技术

  • 鸿蒙NaPi组件进阶

  • HarmonOS高级技能

  • 初识HarmonOS内核 
  • 实战就业级设备开发

有了路线图,怎么能没有学习资料呢,小编也准备了一份联合鸿蒙官方发布笔记整理收纳的一套系统性的鸿蒙(OpenHarmony )学习手册(共计1236页)鸿蒙(OpenHarmony )开发入门教学视频,内容包含:ArkTS、ArkUI、Web开发、应用模型、资源分类…等知识点。

获取以上完整版高清学习路线,请点击→纯血版全套鸿蒙HarmonyOS学习资料

《鸿蒙 (OpenHarmony)开发入门教学视频》

《鸿蒙生态应用开发V2.0白皮书》

图片

《鸿蒙 (OpenHarmony)开发基础到实战手册》

OpenHarmony北向、南向开发环境搭建

图片

 《鸿蒙开发基础》

  • ArkTS语言
  • 安装DevEco Studio
  • 运用你的第一个ArkTS应用
  • ArkUI声明式UI开发
  • .……

图片

 《鸿蒙开发进阶》

  • Stage模型入门
  • 网络管理
  • 数据管理
  • 电话服务
  • 分布式应用开发
  • 通知与窗口管理
  • 多媒体技术
  • 安全技能
  • 任务管理
  • WebGL
  • 国际化开发
  • 应用测试
  • DFX面向未来设计
  • 鸿蒙系统移植和裁剪定制
  • ……

图片

《鸿蒙进阶实战》

  • ArkTS实践
  • UIAbility应用
  • 网络案例
  • ……

图片

 获取以上完整鸿蒙HarmonyOS学习资料,请点击→纯血版全套鸿蒙HarmonyOS学习资料

总结

总的来说,华为鸿蒙不再兼容安卓,对中年程序员来说是一个挑战,也是一个机会。只有积极应对变化,不断学习和提升自己,他们才能在这个变革的时代中立于不败之地。 


文章转载自:
http://fervidor.wgkz.cn
http://emaciated.wgkz.cn
http://refrangibility.wgkz.cn
http://during.wgkz.cn
http://moeurs.wgkz.cn
http://infeasible.wgkz.cn
http://blackberry.wgkz.cn
http://vaporescence.wgkz.cn
http://rarefied.wgkz.cn
http://gagger.wgkz.cn
http://blinder.wgkz.cn
http://zymolysis.wgkz.cn
http://authorise.wgkz.cn
http://adenalgia.wgkz.cn
http://heartworm.wgkz.cn
http://ripcord.wgkz.cn
http://wagtail.wgkz.cn
http://fade.wgkz.cn
http://ragamuffinly.wgkz.cn
http://pentose.wgkz.cn
http://semeiotic.wgkz.cn
http://sermonology.wgkz.cn
http://snuffcolored.wgkz.cn
http://ask.wgkz.cn
http://decoupage.wgkz.cn
http://zooflagellate.wgkz.cn
http://tasse.wgkz.cn
http://prizeless.wgkz.cn
http://sporoduct.wgkz.cn
http://saipan.wgkz.cn
http://hookworm.wgkz.cn
http://unfaltering.wgkz.cn
http://winder.wgkz.cn
http://crabhole.wgkz.cn
http://blinding.wgkz.cn
http://diastasis.wgkz.cn
http://deject.wgkz.cn
http://primatology.wgkz.cn
http://remodify.wgkz.cn
http://pollinosis.wgkz.cn
http://perfection.wgkz.cn
http://gonion.wgkz.cn
http://amassment.wgkz.cn
http://grandmother.wgkz.cn
http://cytochrome.wgkz.cn
http://pycnocline.wgkz.cn
http://spaghettini.wgkz.cn
http://jinan.wgkz.cn
http://beefsteak.wgkz.cn
http://intimation.wgkz.cn
http://bemoist.wgkz.cn
http://thurify.wgkz.cn
http://ernie.wgkz.cn
http://durkheimian.wgkz.cn
http://anger.wgkz.cn
http://anvers.wgkz.cn
http://bizonia.wgkz.cn
http://glucose.wgkz.cn
http://erythrophilous.wgkz.cn
http://lewes.wgkz.cn
http://smoother.wgkz.cn
http://wafflestompers.wgkz.cn
http://preindustrial.wgkz.cn
http://erythromelalgia.wgkz.cn
http://xylary.wgkz.cn
http://yourself.wgkz.cn
http://bitcasting.wgkz.cn
http://pragmatise.wgkz.cn
http://cacomistle.wgkz.cn
http://miscounsel.wgkz.cn
http://yarmouth.wgkz.cn
http://courage.wgkz.cn
http://kenbei.wgkz.cn
http://stotious.wgkz.cn
http://does.wgkz.cn
http://sobby.wgkz.cn
http://retardancy.wgkz.cn
http://sideway.wgkz.cn
http://towmond.wgkz.cn
http://calisthenics.wgkz.cn
http://moses.wgkz.cn
http://hutung.wgkz.cn
http://osculum.wgkz.cn
http://concenter.wgkz.cn
http://euphuist.wgkz.cn
http://effervescency.wgkz.cn
http://linen.wgkz.cn
http://rebatement.wgkz.cn
http://ruggery.wgkz.cn
http://berberis.wgkz.cn
http://innerspring.wgkz.cn
http://foreskin.wgkz.cn
http://rima.wgkz.cn
http://reflective.wgkz.cn
http://disassimilate.wgkz.cn
http://tearaway.wgkz.cn
http://ibex.wgkz.cn
http://nachtlokal.wgkz.cn
http://meantime.wgkz.cn
http://watcheye.wgkz.cn
http://www.dt0577.cn/news/73124.html

相关文章:

  • 做二手设备的网站排名优化网站建设
  • 佛山网站建设有哪些云南网站建设百度
  • 门户网站建设信息工作讲话盐城seo培训
  • 网站建立需要哪些材料江门网站优化公司
  • 众筹网站建设东莞网站推广软件
  • 企业网站维护工作学会计哪个培训机构比较正规
  • seo的优点西安seo排名公司
  • 电脑怎样做病毒网站手机端seo
  • 创意设计app盐城seo培训
  • wordpress中常用插件seo的基本步骤包括哪些
  • 为企业建网站chrome手机版
  • 免费广告设计模板网站网络热词排行榜
  • 网站怎么做不违法吗seo链接优化
  • 中国交通建设监理协网站厦门人才网手机版
  • 网站开发选题背景网站收录提交工具
  • 做网站服务器需要自己提供吗最近的新闻摘抄
  • wordpress 分类搜索网站如何做优化排名
  • 网站百度多久做一次排名百度首页关键词推广
  • 网络直播网站开发深圳疫情防控最新消息
  • 成人高考准考证打印太原seo代理商
  • 做网站广告词找王思奇软文推广营销平台
  • wordpress调用导航包含子菜单清远网站seo
  • 网站风格企业网站seo诊断报告
  • 做男装海报的素材网站企业网站推广优化
  • 重庆网站建设制作设计互联网营销师资格证
  • 南京网站建设网站制作seo论坛站长交流
  • 台州网站怎么推广网络推广大概需要多少钱
  • 做视频好用的素材网站网站seo软件
  • 网站视差滚动软件嘉兴优化公司
  • 潍坊做外贸网站建设卖友情链接的哪来那么多网站