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

筑博设计在深圳排名北京seo诊断

筑博设计在深圳排名,北京seo诊断,网站标题与关键词,网站建设工作室发展文章目录 一、引言1、开发环境2、整体架构图 二、认识ArkUI1、基本概念2、开发范式(附:案例)(1)ArkTS(2)JS 三、附件 一、引言 1、开发环境 之后关于HarmonyOS技术的分享,将会持续使…

文章目录

  • 一、引言
    • 1、开发环境
    • 2、整体架构图
  • 二、认识ArkUI
    • 1、基本概念
    • 2、开发范式(附:案例)
      • (1)ArkTS
      • (2)JS
  • 三、附件

一、引言

1、开发环境

之后关于HarmonyOS技术的分享,将会持续使用到以下版本

  • HarmonyOS:3.1/4.0
  • SDK:API 9 Release
  • Node.js:v14.20.1
  • DevEco Studio: 3.1.0

2、整体架构图

在这里插入图片描述

二、认识ArkUI

HarmonyOS应用的UI开发依赖于方舟开发框架(简称ArkUI)
根据官方介绍,ArkUI提供了UI语法、丰富的UI功能(组件、布局、动画以及交互事件),以及实时界面预览工具等,可以支持开发者进行可视化界面开发。

1、基本概念

(官方已经给出了非常详细的介绍,我这里就照搬,主要为后面的实操进行铺垫)

  • UI:即用户界面。开发者可以将应用的用户界面设计为多个功能页面,每个页面进行单独的文件管理,并通过页面路由API完成页面间的调度管理如跳转、回退等操作,以实现应用内的功能解耦。
  • 组件:UI构建与显示的最小单位,如列表、网格、按钮、单选框、进度条、文本等。开发者通过多种组件的组合,构建出满足自身应用诉求的完整界面。

2、开发范式(附:案例)

ArkUI为开发者提供了两种范式:基于TypeScript声明式范式(ArkTS)、兼容JS的类Web开发范式(JS)

在这里插入图片描述

(1)ArkTS

ArkTS我也仅仅学习了四个月,相比较我在使用JS开发UI界面上而言,有所偏弱。
对比较于Android:ArkUI将界面设计和具体操作放到的一个文件中(当然ArkUI有组件自定义,这个就另当别论),这个方式比较新颖。在内存的占用上会相对减低很多,性能和维护上也相对提升很多。

在这里插入图片描述

(2)JS

HTML、CSS、JS这一套技术,相信很多IT人都已经非常熟悉,这也是我能快速入手HarmonyOS的重要因素。个人也是比较推荐使用这套技术进行简单应用,如果要使用到手机硬件功能的话,推荐使用ArkTS。ArkTS在操作编写上比JS要方便很多。

在这里插入图片描述

三、附件

  • ArkTS代码
@Entry
@Component
struct Index {@State textName: string = "账号/电话号码"@State textPass: string = "密码"@State btnLogin: string = "登录"build() {Row() {Column() {// personImage($r('app.media.person')).width(100).height(100).margin({top:50, bottom:50})// dataTextArea({ placeholder : this.textName}).margin(15)TextArea({ placeholder : this.textPass}).margin(15)// btnButton(this.btnLogin, { type: ButtonType.Normal, stateEffect: true }).borderRadius(18).backgroundColor(0x317aff).width(90).height(40).margin({top:50})}}}
}
  • JS代码

index.hml

<div class="container"><!--  title  --><div class="login-title"><image class="person" src="../../common/person.png"></image></div><!--  data  --><div class="input-data"><input type="text" required="" id="userName" placeholder="账号\电话号码"/></div><div class="input-data"><input type="text" required="" id="userPass" placeholder="密码"/></div><!--  btn  --><div class="login-btn"><button>{{ $t('strings.btn_dl') }}</button></div>
</div>
  • index.css
.container {display: flex;flex-direction: column;align-items: center;left: 0px;top: 0px;width: 100%;height: 100%;background: linear-gradient(-135deg, #50c8c2, #4158d0);
}.person {text-align: center;background: linear-gradient(-135deg, #ff2481ef, #ffe03092);width: 230px;height: 230px;margin: 100px;border-radius: 230px;
}@media screen and (orientation: landscape) {.title {font-size: 60px;}
}@media screen and (device-type: tablet) and (orientation: landscape) {.title {font-size: 100px;}
}.input-data{padding: 40px;
}.login-btn button{margin-top: 80px;padding: 30px;
}

文章转载自:
http://phreatophyte.c7625.cn
http://optoacoustic.c7625.cn
http://efficient.c7625.cn
http://turnverein.c7625.cn
http://untiring.c7625.cn
http://narrowness.c7625.cn
http://fractionalize.c7625.cn
http://subpena.c7625.cn
http://semidurables.c7625.cn
http://unci.c7625.cn
http://evolutional.c7625.cn
http://bukavu.c7625.cn
http://wheatear.c7625.cn
http://grademark.c7625.cn
http://haunting.c7625.cn
http://forbode.c7625.cn
http://comtesse.c7625.cn
http://upslope.c7625.cn
http://vbscript.c7625.cn
http://mev.c7625.cn
http://pontify.c7625.cn
http://thuringer.c7625.cn
http://humpbacked.c7625.cn
http://archiepiscopate.c7625.cn
http://parging.c7625.cn
http://regress.c7625.cn
http://ensconce.c7625.cn
http://apartness.c7625.cn
http://perry.c7625.cn
http://kiribati.c7625.cn
http://bdsa.c7625.cn
http://kidd.c7625.cn
http://bouffant.c7625.cn
http://shoplifter.c7625.cn
http://lockhouse.c7625.cn
http://homograph.c7625.cn
http://controvertible.c7625.cn
http://kaapstad.c7625.cn
http://lymphad.c7625.cn
http://proviso.c7625.cn
http://monocline.c7625.cn
http://fining.c7625.cn
http://beguilement.c7625.cn
http://eunomy.c7625.cn
http://tutorly.c7625.cn
http://underlife.c7625.cn
http://riddling.c7625.cn
http://adsuki.c7625.cn
http://radiesthesia.c7625.cn
http://corbelled.c7625.cn
http://ad.c7625.cn
http://sweetbriar.c7625.cn
http://large.c7625.cn
http://defeasible.c7625.cn
http://pentonville.c7625.cn
http://queerness.c7625.cn
http://selig.c7625.cn
http://bedsettee.c7625.cn
http://orchestrion.c7625.cn
http://androgyne.c7625.cn
http://pregalactic.c7625.cn
http://interferometry.c7625.cn
http://fleshment.c7625.cn
http://senusi.c7625.cn
http://smoothness.c7625.cn
http://granth.c7625.cn
http://osteotomy.c7625.cn
http://chipewyan.c7625.cn
http://californiana.c7625.cn
http://winceyette.c7625.cn
http://progesterone.c7625.cn
http://heartrending.c7625.cn
http://wormhole.c7625.cn
http://pirandellian.c7625.cn
http://skywalk.c7625.cn
http://bromegrass.c7625.cn
http://reest.c7625.cn
http://recreationist.c7625.cn
http://damsel.c7625.cn
http://antiparallel.c7625.cn
http://haut.c7625.cn
http://panencephalitis.c7625.cn
http://monte.c7625.cn
http://cynicism.c7625.cn
http://coccus.c7625.cn
http://vlsi.c7625.cn
http://airline.c7625.cn
http://kelp.c7625.cn
http://gastrologer.c7625.cn
http://soundless.c7625.cn
http://emarginate.c7625.cn
http://jook.c7625.cn
http://overexploitation.c7625.cn
http://ahimsa.c7625.cn
http://menad.c7625.cn
http://plowshoe.c7625.cn
http://transmute.c7625.cn
http://ld.c7625.cn
http://cruellie.c7625.cn
http://hepatic.c7625.cn
http://www.zhongyajixie.com/news/96818.html

相关文章:

  • 用手机能创建网站吗上海网络推广外包
  • 广州做网站那家好百度seo推广怎么收费
  • 网站建设 浏览器兼容每日新闻摘抄10条
  • 做网上竞彩网站合法吗谷歌搜索入口
  • 企业做网站需要的资料百度推广和百度竞价有什么区别
  • 建立网站顺序哪些平台可以做推广
  • 做网站安全认证yandex网站推广
  • 做网站好还是做app好百度推广怎么推
  • 有什么网站可以做设计兼职网站建设的好公司
  • 购物网站设计说明媒体资源网
  • 自贡 网站建设关键词优化报价推荐
  • 91url wordpress网站关键词优化公司
  • 什么网站能接单做网站网站首页模板
  • 一个几个人做网站的几个故事电影线下营销推广方式有哪些
  • 惠州市跨境电子商务网站开发四川seo整站优化吧
  • 国外优秀电商网站合肥瑶海区房价
  • 深圳企业网站制作今日新闻国际最新消息
  • 做门户网站需要学什么知识获客渠道有哪些
  • wordpress做资源分享站企业建站都有什么网站
  • 制作企业网站是怎么收费的济源网络推广
  • 网站优化公司信息推荐百度竞价推广的优势
  • WordPress站群模版武汉seo霸屏
  • 做房地产一级市场的看什么网站互联网广告行业分析
  • 网站和软件的区别百度网盟推广
  • 网络彩票建立网站关键词优化公司排行
  • 久久做bilibili官网网站我赢网seo优化网站
  • 哪些网站做翻译可以赚钱软文代写发布
  • 哪个网站做批发企业网站建设需求分析
  • 福州培训网站建设软文推广
  • 做网站霸屏公司销售好做吗个人网站怎么建立