//1.方法一 windowStage.loadContent('view/autoSearch/AutoSearchPage', (err) => { windowSta...
//1.方法一 windowStage.loadContent('view/autoSearch/AutoSearchPage', (err) => { windowSta...
//1.在开发应用前,需要先申请相机相关权限,确保应用拥有访问xx的权限。在“module.json5”文件中配置xx权限,具体配置方式。 //2.使用接口请求request...
//调用 @Entry @ComponentV2 struct CustomDialogPage { dialogController2: CustomDialogCont...
import { mediaquery } from "@kit.ArkUI"; @Entry @ComponentV2 struct MPage { @Local str...
//参考链接 https://developer.huawei.com/consumer/cn/doc/best-practices/bpta-landscape-and-p...
/** * 网格布局* */ @Entry @ComponentV2 struct BPPage01 { build() { Column() { GridRow...
//1并发函数一般使用
//1.什么是单例 单例模式:一个类只有一个实例,为了节省内存资源 //2.饿汉模式 /** * 单列模式 * 类对象创建,只有一个实例对象* * 饿汉模式 * 一开始就创建...
//1.父组件调用 @Entry @ComponentV2 struct Index { // @Builder // midBuilderParam() { // Ro...
参考官网: https://ohpm.openharmony.cn/#/cn/detail/@ohos%2Faxios //1 下载安装 ohpminstall@ohos/a...
推荐使用lottie-turbo:声明式调用更加简洁 //1.方案一: @ohos/lottie-turbo-OpenHarmony三方库中心仓[https://ohpm.o...
//1.定义常量方法一: 新建CommonConstants 文件 export default class CommonConstants{ /** * 小号字体大...
1.参考官网链接: https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/arkts-new-persi...
//参考官网链接 https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/arkts-new-appsto...
//参考官网链接: https://developer.huawei.com/consumer/cn/doc/harmonyos-references/ohos-arkui-...
//1写入 onWindowStageCreate(windowStage: window.WindowStage): void { // Main window is c...
//1.响应式布局+断点代码 //1.1 新建.ets文件WindowUtil /* * Copyright (c) 2025 Huawei Device Co., Ltd....
1.自定义弹出框 (CustomDialog) //1.新建文件CustomDialogExample @CustomDialog export struct CustomD...
1.路由跳转传参 https://developer.huawei.com/consumer/cn/doc/harmonyos-references/js-apis-rout...
1.创建本地工程 2.打开CMD,在cmd框内打开本地工程项目路径 cd /路径/工程路径 3.执行命令"git init" 4.执行命令"git branch -M mas...