当前位置:网站首页>HarmonyOS-3
HarmonyOS-3
2022-06-24 12:58:00 【辞浔】
1.实现中心框架以及页面上端样式的操作
1.1 在div组件中通过class引用定义样式
1.2 使用容器组件list实现区域滚动效果 
1.3 滑动容器swiper

1.4 通过element组件引入其他文件
其中,src为引入文件地址 ,同时也可name命名。
2.加载文件方式
1>加载.json文件;
注意所要加载的json文件与调用文件的层次路径之间的关系,以便直接调取。
2>通过网络远程真机加载调试。
3.调取文件数据
通过for循环调用子数组中的图片
4.Component Tree(组件树)
通过该方式不单可以直观的了解创建页面中所有组件,同时方便我们更快、更准确地找到某一组件所对应的代码文件,以便我们发现问题与解决问题。
边栏推荐
- MySQL interview questions
- 【sdx62】WCN685X IPA注册失败问题分析及解决方案
- Coinbase will launch the first encryption derivative for individual investors
- On the difference between process and thread
- The research on the report "market insight into China's database security capabilities, 2022" was officially launched
- How can the new webmaster avoid the ups and downs caused by SEO optimization?
- Kotlin language features
- Vim 常用快捷键
- Hands on data analysis unit 3 model building and evaluation
- 2022年烟花爆竹生产单位安全生产管理人员考试题模拟考试题库模拟考试平台操作
猜你喜欢

hands-on-data-analysis 第三单元 模型搭建和评估

Golden age ticket: Web3.0 Security Manual

Without home assistant, zhiting can also open source access homekit and green rice devices?

不用Home Assistant,智汀也开源接入HomeKit、绿米设备?

Activity lifecycle

Opengauss kernel: simple query execution

Vulnerability management mistakes that CIOs still make

【5G NR】5G NR系统架构
![[5g NR] 5g NR system architecture](/img/78/6db70c18887c7a3920843d1cb4bdf3.png)
[5g NR] 5g NR system architecture

Huawei PC grows against the trend, and product power determines everything
随机推荐
杰理之在所有模式下打开喊话增加 mic 自动 mute【篇】
Huawei PC grows against the trend, and product power determines everything
金鱼哥RHCA回忆录:DO447管理清单和凭据--为访问清单主机创建机器凭据
kotlin 初始化块
2022年煤炭生产经营单位(安全生产管理人员)考试题模拟考试平台操作
Gatling 性能测试
90%的项目经理都跳过的坑,你现在还在坑里吗?
kotlin 协程上下文和调度器
Kotlin language features
Daily question 8-515 Find the maximum value in each tree row
System status identifier 'hum' for SAP QM inspection lot
[one picture series] one picture to understand Tencent Qianfan apaas
Kotlin anonymous function and lambda
kotlin 数组、集合和 Map 的使用
kotlin 共享可变状态和并发性
Why did the audio and video based cloud conference usher in a big explosion of development?
Source code analysis handler interview classic
Detailed explanation of kotlin collaboration lanch
Kotlin composite suspend function
On the difference between process and thread