首页
鸿蒙的基本概念和配置
菜单
首页
鸿蒙的基本概念和配置
Mobile Coder
鸿蒙、Android、前端技术交流
归档
2024 年 05 月
鸿蒙开发-首选项Preferences
2024-05-07
鸿蒙
#鸿蒙
https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V2/data-persistence-by-preferences-0000001505432513-V2#section128216613314
鸿蒙开发-abilityStage
2024-05-07
鸿蒙
#鸿蒙
AbilityStage组件容器 abilityStage 相当于 android的application 。 一个module 对应一个abilityStage 。应用的HAP在首次加载时会创建一个AbilityStage实例 它是一个ts 文件!! 配置 自定义AbilityStage ,需要再
鸿蒙开发-axios
2024-05-07
鸿蒙
#harmony
#axios
1.下载和安装ohmp https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V2/ide-command-line-ohpm-0000001490235312-V2 1.2解压工具包,执行初始化命令 #window 环境 ini
鸿蒙的基本概念和配置
2024-05-02
鸿蒙
鸿蒙基本概念应用: 一个应用,包含多个ability , ability 有两种(UIAbility和ExtensionAbility)。 一个应用,图标和标签(icon ,label)在AppScope/app.json5 配置。这是系统设置界面会显示的 一个应用,有多个入口,在module/sr
2024 年 04 月
鸿蒙隐士意图|隐士want
2024-04-30
鸿蒙
#隐士意图
#隐士want
#scheme
鸿蒙App 通过隐式want,可启动另个App。和安卓相似。 1.目标应用,配置文件配置action,entities,uri,type 2.启动应用,通过2步 new Want(action,entities,uri,type)context.startAbility(want) 这里要注意的ac
typescript-模块化
2024-04-28
应用复杂时,我们可以把通用功能抽取到单独的ts文件中,每个文件都是一个模块(module)。模块可以相互加载,提供代码复用性 //定义矩形类,并通过export导出 export class Rectangle { //成员变量 public width: number public length:
typescript-类和接口
2024-04-28
TypeScript 具备面向对象编辑的基础语法,包括interface,class ,enum等;也具备封装,基础,多态等面向对象的基本特征 //定义矩形类 class Rectangle { //成员变量 private width: number private len
入门typescript-函数
2024-04-28
TypeScript 通常利用function 关键字生命函数,并且支持可选参数,默认参数,箭头等特殊语法
typescript-循环和条件判断
2024-04-28
for循环 // 普通for for(let i=1;i<= 10; i++){ console.log('点赞'+i+'次') } // while let i = 1;while(i <= 10){ console.log('点赞'+i+'次'); i++; } let
入门typescript-基本数据类型
2024-04-28
let msg:string ="hello world" ; console.log('msg:'+ msg); let num:number=21; console.log('num:'+num); let finished: boolean =true; console.log('fini
上一页
3 / 5
下一页