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

做企业销售分析的网站移动端网站的重要性

做企业销售分析的网站,移动端网站的重要性,wordpress非插件幻灯,怎么申请自己的企业邮箱效果展示 这篇博文在《鸿蒙#xff1a;从0到“Hello Harmony”》基础上实现两个Page页面跳转 1.构建第一个页面 第一个页面就是“Hello Harmony”#xff0c;把文件名和显示内容都改一下#xff0c;改成“FirstPage”#xff0c;再添加一个“Next”按钮。 Entry Compone…效果展示 这篇博文在《鸿蒙从0到“Hello Harmony”》基础上实现两个Page页面跳转 1.构建第一个页面 第一个页面就是“Hello Harmony”把文件名和显示内容都改一下改成“FirstPage”再添加一个“Next”按钮。 Entry Component struct FristPage {State message1: string FirstPageState message2: string Nextbuild() {Row() {Column() {Text(this.message1).fontSize(30).fontWeight(FontWeight.Bold).height(10%).margin({top: 0})Button(this.message2).fontSize(30).fontWeight(FontWeight.Bold).height(5%).type(ButtonType.Capsule).margin({top: 30}).backgroundColor(#0D9FFB).width(50%).height(5%)}.width(100%)}.height(100%)} } 在编辑窗口右上角的侧边工具栏点击Previewer打开预览器。第一个页面效果如下图所示 2.构建第二个页面 1.在“entry src main ets pages”目录下新建SecondPage.ets 同样实现一个文本和一个Button按钮 Entry Component struct SecondPage {State message1: string SecondPageState message2: string Backbuild() {Row() {Column() {Text(this.message1).fontSize(30).fontWeight(FontWeight.Bold)Button(this.message2).fontSize(30).fontWeight(FontWeight.Bold).height(5%).type(ButtonType.Capsule).margin({top: 30}).backgroundColor(#0D9FFB).width(50%).height(5%)}.width(100%)}.height(100%)} } Previewer效果 3.配置路由 配置第二个页面的路由。 在“Project”窗口打开“entry src main resources base profile” 在main_pages.json文件中的“src”下配置第二个页面的路由“pages/second”。 代码如下 {src: [pages/FirstPage,pages/SecondPage] } 4.实现页面跳转 ​页面间的导航可以通过页面路由router来实现。 页面路由router根据页面url找到目标页面从而实现跳转。 使用页面路由需要导入router模块。 (1).第一个页面跳转到第二个页面 在第一个页面中跳转按钮绑定onClick事件点击按钮时跳转到第二页。 “FirstPage.ets”文件的代码如下 // ohos.router模块功能从API version 8开始支持请使用对应匹配的SDK import router from ohos.router;Entry Component struct FristPage {State message1: string FirstPageState message2: string Nextbuild() {Row() {Column() {Text(this.message1).fontSize(30).fontWeight(FontWeight.Bold).height(10%).margin({top: 0})Button(this.message2).fontSize(30).fontWeight(FontWeight.Bold).height(5%).type(ButtonType.Capsule).margin({top: 30}).backgroundColor(#0D9FFB).width(50%).height(5%).onClick(() {console.info(Succeeded in clicking the Next button.)try {router.pushUrl({ url: pages/SecondPage })console.info(Succeeded in jumping to the second page.)} catch (err) {console.error(Failed to jump to the second page.Code is ${err.code}, message is ${err.message})}})}.width(100%)}.height(100%)} } (1).第二个页面跳转到第一个页面 在第二个页面中返回按钮绑定onClick事件点击按钮时返回到第一页。 “SecondPage.ets”文件的示例如下 import router from ohos.router;Entry Component struct SecondPage {State message1: string SecondPageState message2: string Backbuild() {Row() {Column() {Text(this.message1).fontSize(30).fontWeight(FontWeight.Bold)Button(this.message2).fontSize(30).fontWeight(FontWeight.Bold).height(5%).type(ButtonType.Capsule).margin({top: 30}).backgroundColor(#0D9FFB).width(50%).height(5%).onClick(() {console.info(Succeeded in clicking the Next button.)try {router.pushUrl({ url: pages/FirstPage })console.info(Succeeded in jumping to the second page.)} catch (err) {console.error(Failed to jump to the second page.Code is ${err.code}, message is ${err.message})}})}.width(100%)}.height(100%)} } 5.实现效果 如开头展示
http://www.hkea.cn/news/14577854/

相关文章:

  • 网站建设看什么书图片素材网站哪个最多
  • 建设网站费网站建设都用哪个好
  • 四川省建设质量工程协会网站洛阳app开发公司
  • 网站空间购买800镇江网站优化seo
  • 积极推进网站建设指纹定制网站
  • ping站长工具WordPress搭建会员系统
  • 网站费用单广东外贸型网站建设
  • 网站开发的基本知识wordpress windows部署
  • 襄阳网站建设兼职公司网站用什么语言开发
  • 南阳做网站多少电话网站设计博客
  • 自己建个网站需要什么企业网站建设一条
  • 门户网站建设意义网站怎样推广 优帮云
  • 网站外链要怎么做wordpress用户手册
  • 合肥seo网站推广费用企业网站备案名称要求
  • 网站实名认证必须做么网页设计的注意事项
  • 网站建站平台开发服务wordpress特定账户注册
  • 蚂蚁建站火车wordpress
  • 知名网站制作企业秦皇岛生态文明建设
  • 苏州建站仿站怎么建设网站首页
  • 多域名一个网站备案商城网站开发报价方案
  • 柳南网站建设湖南省郴州市简介
  • 网站仿静态和静态的区别微网站怎么注册
  • 微商手机网站制作公司网站系统升级建设合同
  • 云南建设厅和网站北京 网站 优化
  • 企业展示网站 数据库设计连云港专业网站优化
  • 门户网站编辑联系方式在线qq登录入口
  • 北京app网站建设wordpress安装上传
  • 网站的外链怎么做已经建网站做外贸
  • 高校网站开发网站后台默认用户名
  • 做瞹瞹瞹视频网站怎么把网站推广