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

江门外贸集团有限公司英文网站网络营销的主要方式和技巧

江门外贸集团有限公司英文网站,网络营销的主要方式和技巧,成都高端网站建设公司,私服网站怎么做1、create Project,选择Empty Activity 2、配置项目 project name 为项目名称,建议使用驼峰型命名 Bundle name 为项目包名 Save location 为保存位置 Module name 为模块名称,即运行时需要选择的模块名称,见下图 查看模块名称&…

1、create Project,选择Empty Activity

在这里插入图片描述

2、配置项目

project name 为项目名称,建议使用驼峰型命名
Bundle name 为项目包名
Save location 为保存位置
Module name 为模块名称,即运行时需要选择的模块名称,见下图
在这里插入图片描述
查看模块名称,并选择
在这里插入图片描述

3、创建第一个界面

在这里插入图片描述
第一个界面实现:有一个Hello World的Text 和Button组成,点击button跳转到第二个界面中,button中带有字符串Next

import { router } from '@kit.ArkUI';
import { BusinessError } from '@kit.BasicServicesKit';@Entry
@Component
struct Index {@State message: string = 'Hello World';build() {Row(){Column() {Text(this.message).fontSize(50).fontWeight(FontWeight.Bold)// 添加按钮,以响应用户点击Button() {Text('Next').fontSize(30).fontWeight(FontWeight.Bold)}.type(ButtonType.Capsule).margin({top: 20}).backgroundColor('#0D9FFB').width('40%').height('15%').onClick(() => {console.info(`Succeeded in clicking the 'Next' button.`)// 跳转到第二页router.pushUrl({ url: 'pages/second' }).then(() => {console.info('Succeeded in jumping to the second page.')}).catch((err: BusinessError) => {console.error(`Failed to jump to the second page. Code is ${err.code}, message is ${err.message}`)})})}.width('100%')}}
}

4、创建第二个界面

在resources -> base -> profile目录下的main_pages.jason中添加界面pages/second

{"src": ["pages/Index","pages/second"]
}

在这里插入图片描述

5、第二个界面的代码实现

使用 ‘string’ 表示的是字符串

import { router } from '@kit.ArkUI'
import { BusinessError } from '@kit.BasicServicesKit'// Second.ets
@Entry
@Component
struct Second {@State message: string = 'Hi there'build() {Row() {Column() {Text(this.message).fontSize(50).fontWeight(FontWeight.Bold)Button() {Text('Back').fontSize(30).fontWeight(FontWeight.Bold)}.type(ButtonType.Capsule).margin({top: 20}).backgroundColor('#0D9FFB').width('40%').onClick(() => {console.info(`Succeeded in clicking the 'Back' button.`)// 跳转到第二页router.pushUrl({ url: 'pages/Index' }).then(() => {console.info('Succeeded in jumping to the first page.')}).catch((err: BusinessError) => {console.error(`Failed to jump to the first page. Code is ${err.code}, message is ${err.message}`)})}).height("15%")}.width('100%')}.height('100%')}
}

6、实现效果

第一个界面Index:

在这里插入图片描述

第二个界面second:

在这里插入图片描述

build运行

在Previewer运行时,如果代码出现问题,并不会运行失败,而是界面不重新刷新

解决方案:在Build -> Rebuild Project中重构代码,出现错误会提示

http://www.tj-hxxt.cn/news/67134.html

相关文章:

  • 淮北哪里做网站网站统计系统
  • 手机网站做落地页天津网站制作系统
  • 花卉电子商务网站建设策划书福建seo关键词优化外包
  • 你做的网站会不会被人模仿在线seo外链工具
  • 住房和城乡建设部科技发展促进中心网站销售成功案例分享
  • 网站建设开发哪家质量好郑州seo网络推广
  • 手机qq浏览器网页安全防护怎么关seo外包服务专家
  • wordpress 主题管理汕头seo网络推广服务
  • 网站加速服务友情网站
  • 网站做导航设计的作用是什么意思百度竞价项目
  • 贵阳网站开发价格企业qq怎么申请注册
  • 东莞网站建设知名公司排名百度营销官网
  • 网站中的搜索功能怎么做的厦门seo怎么做
  • 慈溪网站建设公司品牌广告和效果广告的区别
  • 日本出线未seo流量增加软件
  • 龙岗区网站建设公司坚持
  • 淘宝图片做链接的网站爱站长尾关键词挖掘工具
  • b2c网站到货通知功能对比分析网络广告推广方案
  • 做外贸网络推广网站站长之家查询域名
  • 专业做网站的公司有哪些网站统计工具有哪些
  • 模块化局域网网站建设软件发布推广信息的网站
  • 沧州网站优化公司b2b
  • 新网站如何做排名一键优化表格
  • 公司企业发展建议搜索引擎优化实训心得
  • 2022年最火的网页游戏郑州seo代理商
  • 做网站需要的资质1个百度指数代表多少搜索
  • 阿里云服务器客服电话 人工优化seo厂家
  • 邢台网站建设优化潍坊今日头条新闻最新
  • 网站栏目页排名怎么做网站模板
  • 搭建网站 程序搜索引擎