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

网站服务器租用价格表wordpress推广升级vip

网站服务器租用价格表,wordpress推广升级vip,建设银行东莞招聘网站,深圳网站建设网络推广公司arkts是声名式UI DevEcoStudio的右侧预览器可以预览。有个TT的图标可以看布局的大小。和html的布局浏览很像。 上图布局对应的代码#xff1a; Entry //入口 Component struct Index {State message: string Hello Harmonyos //State 数据改变了也刷新的标签build() {Row()…arkts是声名式UI DevEcoStudio的右侧预览器可以预览。有个TT的图标可以看布局的大小。和html的布局浏览很像。 上图布局对应的代码 Entry //入口 Component struct Index {State message: string Hello Harmonyos //State 数据改变了也刷新的标签build() {Row() {Column() {Text(this.message).fontSize(30).margin(10).padding(20).backgroundColor(#333333).fontColor(Color.White).border({width:3,color:Color.Blue}).borderRadius(10).onClick(() {console.log(点击了text)this.message text}).fontWeight(FontWeight.Bold)Divider().margin(10)Button(click).width(100).height(50).onClick(this.read.bind(this))}.width(100%).height(50%)}.height(100%).width(90%)}// 方法多的话写到这里read() {console.log(我是button的点击事件)this.message button} } 新建页面的时候选择page。就会主动把该页面添加在路由中。 此处就是新建的页面的路由。和微信小程序是一样一样的。要加到这个page上。 1、自定义组件内自定义构件函数。 Builder 注释来实现 Entry //入口 Component struct PageB {State message: string Hello World //State 数据改变了也刷新的标签build() {Row() {Column() {this.TextLabel(账号)this.TextLabel(密码)Divider().margin(10)Button(click).width(100).height(50).onClick(this.read.bind(this))}.width(100%).height(50%)}.height(100%).width(90%)}// 方法多的话写到这里read() {console.log(我是button的点击事件)this.message button}Builder//自定义组件内自定义构件函数TextLabel(title:string ){Text(titlethis.message).fontSize(16).margin(10).padding(10).width(200).height(50).backgroundColor(#333333).fontColor(Color.White).border({width:3,color:Color.Blue}).borderRadius(10).onClick(() {this.message admin}).fontWeight(FontWeight.Bold)} } 2.全局自定义构建函数 Entry //入口 Component struct PageB {State message: string Hello World //State 数据改变了也刷新的标签build() {Row() {Column() {TextLabel(账号)TextLabel(密码)Divider().margin(10)Button(click).width(100).height(50).onClick(this.read.bind(this))}.width(100%).height(50%)}.height(100%).width(90%)}// 方法多的话写到这里read() {console.log(我是button的点击事件)this.message button} } Builder//全局自定义构件函数 function TextLabel(title:string ){Text(titlethis.message).fontSize(16).margin(10).padding(10).width(200).height(50).backgroundColor(#333333).fontColor(Color.White).border({width:3,color:Color.Blue}).borderRadius(10).onClick(() {this.message admin//在全局不建议去修改message}).fontWeight(FontWeight.Bold) } 3、全局自定义函数实现简单的登录功能。采用引用传值函数回调的方法。 Entry //入口 Component struct PageB_build_param {State message: string Hello World //State 数据改变了也刷新的标签State username: string State password: string build() {Row() {Column() {text({ title: 用户, valueStr:this.username, cb: (value:string) {this.usernamevalue} })text({ title:密码,valueStr:this.password,cb:(value:string){this.passwordvalue} })Divider().margin(10)Row() {Button(登录).fontSize(16).width(100).height(50).margin({ right: 10, left: 10 }).onClick(this.login.bind(this))Button(重置).fontSize(16).width(100).height(50).margin({ left: 10, right: 10 }).onClick(this.reset.bind(this))}}.width(100%).height(50%)}.height(100%).width(100%)}//登录login() {console.log(this.username----this.password)}reset() {this.username this.password } }Builder //全局自定义构件函数 function text($$: { title: string,valueStr: string,cb: (value: string) void }) {Row() {Text($$.title).fontSize(16).margin(10).padding(10).width(80).textAlign(TextAlign.Center).height(50).backgroundColor(#333333).fontColor(Color.White).border({width: 3,color: Color.Blue}).borderRadius(10).fontWeight(FontWeight.Bold)TextInput({ text: $$.valueStr }).width(200).height(50).fontSize(16).onChange((value: string) {$$.cb(value)})}.alignItems(VerticalAlign.Center)}
http://www.hkea.cn/news/14327202/

相关文章:

  • 免费网站建设源码wordpress 手机站目录
  • 定制网站开发一般多少钱小软件开发
  • 阳江优化网站排名怎么给自己网站做搜索框
  • 电子商务网站建设的建议做网站和推广找哪家好
  • 网站内页做几个词陕西做网站公司
  • 前端网站开发课程做电商必备的几个软件
  • 换网站后台淄博张店外贸建站公司
  • 西直门网站建设公司Wordpress分享到微信图标
  • 网站建设资格预审公告微信公众平台app下载安装
  • 三门峡建设网站seo诊断工具
  • 电商网站 支付宝接口公众号 创意名字
  • 网站设计标语wordpress文章显示颜色
  • 网站营销信息wordpress主题优点
  • 建设通网站会员共享密码网站建设z亿玛酷1订制
  • 济宁神华 网站建设wordpress 页面设置
  • 北京模板网站建设全包网站推广途径方法
  • 河南专业网站建设哪家好wordpress指定标签不同样式
  • 网站建设车成本建筑工程网站哪个好
  • 网络营销的主要方式和技巧短视频seo询盘系统
  • 网站建设评审验收会议主持词wordpress表白系统
  • 做视频网站想用家庭网络html图片网站
  • 建大型购物网站太原网站建设模板站
  • 网站的建设流程图义网站建设推荐郑国华
  • 衡水提供网站制作公司哪家好微网站建设方案
  • 河北省城乡建设厅网站首页做网站为什么要用固定ip
  • 做公司网站要多少钱苏州建设有限公司
  • 电商网站前端制作分工wordpress toc
  • 宁波企业网站制作哪家好网络公司怎么优化网站
  • 合伙做网站电商怎么做营销推广w
  • 长沙网站关键词推广wordpress首页显示文章数