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

做彩票游戏网站违法吗seo课程心得体会

做彩票游戏网站违法吗,seo课程心得体会,哪里有建设公司官网,苏州集团网站制作公司上篇回顾: ArkTS开发系列之导航 (2.7动画) 本篇内容:ArkTS开发系列之事件(2.8.1触屏、键鼠、焦点事件) 一、知识储备 1. 触屏事件:包括点击事件、拖拽事件、触摸事件。 点击事件 Button()....onClick(…

上篇回顾: ArkTS开发系列之导航 (2.7动画)

本篇内容:ArkTS开发系列之事件(2.8.1触屏、键鼠、焦点事件)

一、知识储备

1. 触屏事件:包括点击事件、拖拽事件、触摸事件。

  • 点击事件
Button()....onClick(()=>{})
  • 拖拽事件:是指手指/手写笔长按组件(>=500ms),并拖拽到接收区域释放的事件
 .onDragEnter((event, params) => {console.error('onDragEnter event: ' + JSON.stringify(event))console.error('onDragEnter params: ' + JSON.stringify(params))}).onDragLeave((event, params) => {console.error('onDragLeave event: ' + JSON.stringify(event))console.error('onDragLeave params: ' + JSON.stringify(params))}).onDragMove((event, params) => {console.error('onDragMove event: ' + JSON.stringify(event))console.error('onDragMove params: ' + JSON.stringify(params))}).onDrop((event: DragEvent, params: string) => {console.error('onDrop event: ' + JSON.stringify(event))console.error('onDrop params: ' + JSON.stringify(params))this.color = Color.Yellow;})
  • 触摸事件:包括按下(down)、滑动(move)和抬起(up)
  .onTouch((event: TouchEvent)=>{if (event.type == TouchType.Down) {console.error("down: " + event.touches[0].x + " " + event.touches[0].y)console.error("down: " + event.touches[0].screenX + " " + event.touches[0].screenY)}if (event.type == TouchType.Move) {console.error("Move: " + event.touches[0].x + " " + event.touches[0].y)console.error("Move: " + event.touches[0].screenX + " " + event.touches[0].screenY)}if (event.type == TouchType.Up) {console.error("Up: " + event.touches[0].x + " " + event.touches[0].y)console.error("Up: " + event.touches[0].screenX + " " + event.touches[0].screenY)}})

2. 键鼠事件&按键事件

  • 键鼠事件
.onHover((event: boolean) => {if (event) {this.msg = '鼠标在玩具之上'} else {this.msg = '鼠标离开了玩具'}console.error(this.msg)})
.onMouse((event: MouseEvent)=>{this.msg = '鼠标点击了我'console.error(this.msg)console.error(JSON.stringify(event))})
.hoverEffect(HoverEffect.Scale)
  • 按键事件
   .onKeyEvent((event: KeyEvent)=>{if (event.type == KeyType.Down) {}if (event.type == KeyType.Up) {}this.msg = event.keyText})

3. 焦点

  • 获得焦点回调
       .onFocus(() => {this.focusMsg = '获取焦点'})
  • 失去焦点回调
       .onBlur(() => {this.focusMsg = '失去焦点'})
  • 设置组件是否可以获得焦点
    • button、checkBox、textInput此类组件 默认可获得焦点
    • text 、image此类组件默认无法获得组件,可设置focusable为true来获得焦点能力
    • blank、circle此类组件则无论如何设置都无法具有获取焦点的能力
      .focusable(true)//
  • 自定义某个组件默认获得焦点
.defaultFocus(true)
  • 点击获取焦点
.focusOnTouch(true)

二、效果一览

三、源码剖析

http://www.yidumall.com/news/82502.html

相关文章:

  • 安徽工程建设信息网站6点击排名优化
  • 肇庆企业免费建站谷歌商店app下载
  • 唐山哪里建筑工地最好网站推广优化排名seo
  • 做商城网站多少钱正规手游代理平台有哪些
  • 关于网站建设的网络诈骗的案例上海网站seo优化
  • 免费不良网站代码是多少百度关键词优化词精灵
  • 传奇开服表优化大师有必要花钱吗
  • 国外优秀设计网站有哪些百度广告怎么推广
  • ppt那个网站做的好东莞网络营销网络推广系统
  • h5页面怎么生成链接宁波seo优化公司
  • 利用社交网站做淘宝客有哪些可以免费推广的平台
  • 做ppt如何从网站插入视频东莞网站建设优化排名
  • 深圳做网站的公最佳的资源搜索引擎
  • 平面设计图网站专业海外网站推广
  • 美国电话号码生成器seo会被取代吗
  • 营销型网站建设网络推广国外网站搭建
  • 怎么做相册的网站seo是什么的缩写
  • 学习网站开发思路现在最火的发帖平台
  • 游戏网站开发计划书百度推广运营这个工作好做吗
  • 中国网站排行榜近三天重大新闻摘抄
  • 洞口网站建设百度地图推广电话
  • 辽宁省建设执业继续教育协会网站谷歌seo是什么
  • 网站建设者口碑营销的概念是什么
  • 做网站的投入热点营销案例
  • 做网站别人输账号代码南宁seo手段
  • 网站建设化学图片旺道优化软件
  • 网站流量图怎么做百度引流平台
  • 织梦如何仿手机网站源码下载东莞网站定制开发
  • 写作网站网页制作教程步骤
  • 百度模拟点击深圳关键词优化平台