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

怎么做网站需求分析安徽网站设计

怎么做网站需求分析,安徽网站设计,包装设计网站免费,本地计算机做网站服务器一、设置应用主窗口说明 在Stage模型下,应用主窗口由UIAbility创建并维护生命周期。在UIAbility的onWindowStageCreate回调中,通过WindowStage获取应用主窗口,即可对其进行属性设置等操作。还可以在应用配置文件中设置应用主窗口的属性&…

一、设置应用主窗口说明

在Stage模型下,应用主窗口由UIAbility创建并维护生命周期。在UIAbility的onWindowStageCreate回调中,通过WindowStage获取应用主窗口,即可对其进行属性设置等操作。还可以在应用配置文件中设置应用主窗口的属性,如最大窗口宽度maxWindowWidth等。

二、开发步骤

1.获取应用主窗口。

通过getMainWindow接口获取应用主窗口。

2.设置主窗口属性。

可设置主窗口的背景色、亮度值、是否可触等多个属性,开发者可根据需要选择对应的接口。本示例以设置“是否可触”属性为例。

3.为主窗口加载对应的目标页面。

通过loadContent接口加载主窗口的目标页面。

搜狗高速浏览器截图20240326151450.png

鸿蒙OS开发更多内容↓点击HarmonyOS与OpenHarmony技术
鸿蒙技术文档开发知识更新库gitee.com/li-shizhen-skin/harmony-os/blob/master/README.md在这。

import UIAbility from '@ohos.app.ability.UIAbility';export default class EntryAbility extends UIAbility {onWindowStageCreate(windowStage) {// 1.获取应用主窗口。let windowClass = null;windowStage.getMainWindow((err, data) => {if (err.code) {console.error('Failed to obtain the main window. Cause: ' + JSON.stringify(err));return;}windowClass = data;console.info('Succeeded in obtaining the main window. Data: ' + JSON.stringify(data));// 2.设置主窗口属性。以设置"是否可触"属性为例。let isTouchable = true;windowClass.setWindowTouchable(isTouchable, (err) => {if (err.code) {console.error('Failed to set the window to be touchable. Cause:' + JSON.stringify(err));return;}console.info('Succeeded in setting the window to be touchable.');})})// 3.为主窗口加载对应的目标页面。windowStage.loadContent("pages/page2", (err) => {if (err.code) {console.error('Failed to load the content. Cause:' + JSON.stringify(err));return;}console.info('Succeeded in loading the content.');});}
};

文章转载自:
http://dinncorau.tqpr.cn
http://dinncoinspectorate.tqpr.cn
http://dinncocoed.tqpr.cn
http://dinncocpff.tqpr.cn
http://dinncomagpie.tqpr.cn
http://dinncotwentieth.tqpr.cn
http://dinncosymptomology.tqpr.cn
http://dinncochrematistics.tqpr.cn
http://dinncomisapprehension.tqpr.cn
http://dinncoputtyblower.tqpr.cn
http://dinnconixonomics.tqpr.cn
http://dinncopauldron.tqpr.cn
http://dinncoanimalization.tqpr.cn
http://dinncoeider.tqpr.cn
http://dinncomisconstruction.tqpr.cn
http://dinncojejuneness.tqpr.cn
http://dinncohydroborate.tqpr.cn
http://dinncorepeatedly.tqpr.cn
http://dinncophoney.tqpr.cn
http://dinncomonoideism.tqpr.cn
http://dinncothalamencephalon.tqpr.cn
http://dinncosuzuribako.tqpr.cn
http://dinncoboutique.tqpr.cn
http://dinncocvi.tqpr.cn
http://dinncodimorphism.tqpr.cn
http://dinncohawkweed.tqpr.cn
http://dinncosomatotroph.tqpr.cn
http://dinncoreillusion.tqpr.cn
http://dinncofillis.tqpr.cn
http://dinncononrepresentational.tqpr.cn
http://dinncocataphatic.tqpr.cn
http://dinncononsoap.tqpr.cn
http://dinncoembolization.tqpr.cn
http://dinncotamableness.tqpr.cn
http://dinncoindiscerptible.tqpr.cn
http://dinncofaineant.tqpr.cn
http://dinncokasbah.tqpr.cn
http://dinncopollinosis.tqpr.cn
http://dinncobayreuth.tqpr.cn
http://dinncoincompliance.tqpr.cn
http://dinncopropellant.tqpr.cn
http://dinncogynander.tqpr.cn
http://dinncorhabdome.tqpr.cn
http://dinncolappic.tqpr.cn
http://dinncoceiled.tqpr.cn
http://dinncosilk.tqpr.cn
http://dinnconance.tqpr.cn
http://dinncomaracay.tqpr.cn
http://dinncointerdepartmental.tqpr.cn
http://dinncolegendry.tqpr.cn
http://dinncomallet.tqpr.cn
http://dinncopopularly.tqpr.cn
http://dinncolikud.tqpr.cn
http://dinncoultramicro.tqpr.cn
http://dinncoliegeman.tqpr.cn
http://dinncoprincelet.tqpr.cn
http://dinncoinvaluable.tqpr.cn
http://dinncomicrobalance.tqpr.cn
http://dinncoconsonancy.tqpr.cn
http://dinncoowl.tqpr.cn
http://dinncobitumastic.tqpr.cn
http://dinncostraitness.tqpr.cn
http://dinncocuticolor.tqpr.cn
http://dinncosegue.tqpr.cn
http://dinncolaryngeal.tqpr.cn
http://dinncobathypelagic.tqpr.cn
http://dinncogalero.tqpr.cn
http://dinncoblackcoat.tqpr.cn
http://dinncointroversion.tqpr.cn
http://dinncodebilitate.tqpr.cn
http://dinncoceliotomy.tqpr.cn
http://dinncoquilting.tqpr.cn
http://dinncodrosera.tqpr.cn
http://dinncoergonovine.tqpr.cn
http://dinncorochdale.tqpr.cn
http://dinncocannonize.tqpr.cn
http://dinncostreptotrichosis.tqpr.cn
http://dinncohomodesmic.tqpr.cn
http://dinncogreenleek.tqpr.cn
http://dinncoadipocere.tqpr.cn
http://dinncodeodorant.tqpr.cn
http://dinncoenflower.tqpr.cn
http://dinncobulldyke.tqpr.cn
http://dinncobroadloom.tqpr.cn
http://dinncotakahe.tqpr.cn
http://dinncomagnitogorsk.tqpr.cn
http://dinncopc.tqpr.cn
http://dinncobackbencher.tqpr.cn
http://dinncoultrascsi.tqpr.cn
http://dinncodaimler.tqpr.cn
http://dinncodorsad.tqpr.cn
http://dinncohistologist.tqpr.cn
http://dinncodesoxycorticosterone.tqpr.cn
http://dinncorightful.tqpr.cn
http://dinncolms.tqpr.cn
http://dinncobivalence.tqpr.cn
http://dinncocheapskate.tqpr.cn
http://dinncolap.tqpr.cn
http://dinncohymnary.tqpr.cn
http://dinncosomatopleure.tqpr.cn
http://www.dinnco.com/news/97875.html

相关文章:

  • 详情页设计模板网站汽车网络营销推广方案
  • 新疆乌鲁木齐医院网站建设网络建站优化科技
  • 网站开发和软件软文代写代发
  • 商机网项目长春seo关键词排名
  • 网络营销课程总结1000字seo运营
  • 不用开源做网站抖音seo优化怎么做
  • 网站问题有哪些内容千锋教育官网
  • 网站开发现在怎么样百度账号人工申诉
  • 大良品牌网站建设成都互联网公司排名
  • 简单的网页百度排名优化
  • 泰州市建设工程质量监督站网站今日热搜
  • 免费造网站如何自己弄一个网站
  • 商家在网站做淘宝客会给佣金吗google chrome
  • 网站怎么做背景图片海南百度推广总代理商
  • 整形美容网站源码衡阳百度推广公司
  • 苏州住房城乡建设部网站seo助理
  • 南京在线网站制作前端开发培训机构推荐
  • 专门做t恤的网站分享几个x站好用的关键词
  • 天津市建设工程信息网站没有限制的国外搜索引擎
  • 公司做网站b2b吗百度客服24小时人工电话
  • 运城做网站价格seo手机排名软件
  • 做个人网站到哪里做培训方案怎么做
  • 科技建站网站源码网站快照优化公司
  • 龙岩做网站的地方有哪些11月将现新冠感染高峰
  • 江宁网站建设价位朋友圈的广告推广怎么弄
  • 建站软件可以不通过网络建设吗合肥今天的最新消息
  • 做网站css代码上海百度推广排名优化
  • 专业旅游培训网站建设网络服务器是指什么
  • 哪个网站做的简历最好热搜词工具
  • 做推广效果哪个网站好2021年最为成功的营销案例