当前位置:网站首页>鸿蒙第四次培训
鸿蒙第四次培训
2022-07-05 13:52:00 【Makr小青】
1:轮播图:
<div class="cb-swiper-container">
<swiper>
<image for="{ {list.slice(0.5)}}" src="{ {item.image}}">
</image>
</swiper>
</div>
2: 数据传入(如将菜名传入list)
import list from "../ ../ ../common/datas/cookbook-hotcat.json"
export default {
data: {
list: []
},
onReady( {
this.list = list
}
}
3:list组件:参考华为官方文档
list-容器组件-组件-JS应用开发-智慧视觉设备-HarmonyOS设备开发
4:跳转页面(涉及生命周期):
页面A的生命周期接口的调用顺序:打开页面A:onInit() -> onReady() -> onShow()
在页面A打开页面B:onHide() -> onDestroy()
从页面B返回页面A:onInit() -> onReady() -> onShow()
退出页面A:onHide() -> onDestroy()
页面隐藏到后台运行:onHide()
页面从后台运行恢复到前台:onShow()
边栏推荐
- Idea remote debugging agent
- Network security - Novice introduction
- Rk3566 add LED
- 搭建一个仪式感点满的网站,并内网穿透发布到公网 2/2
- Summit review | baowanda - an integrated data security protection system driven by compliance and security
- Pancake Bulldog robot V2 (code optimized)
- Jasypt configuration file encryption | quick start | actual combat
- What about data leakage? " Watson k'7 moves to eliminate security threats
- Deep copy is hard
- Self built shooting range 2022
猜你喜欢

Convolutional Neural Networks简述

Catch all asynchronous artifact completable future

How to deal with the Yellow Icon during the installation of wampserver

ELFK部署

研究生可以不用学英语?只要考研英语或六级分数高!

【华南理工大学】考研初试复试资料分享

Set up a website with a sense of ceremony, and post it to the public 2/2 through the intranet

Summit review | baowanda - an integrated data security protection system driven by compliance and security

Zibll theme external chain redirection go page beautification tutorial

【云资源】云资源安全管理用什么软件好?为什么?
随机推荐
The development of speech recognition app with uni app is simple and fast.
[js] basic syntax - for loop
leetcode 10. Regular expression matching regular expression matching (difficult)
LeetCode_2(两数相加)
Aikesheng sqle audit tool successfully completed the evaluation of "SQL quality management platform grading ability" of the Academy of communications and communications
Zhubo Huangyu: it's really bad not to understand these gold frying skills
When using Tencent cloud for the first time, you can only use webshell connection instead of SSH connection.
Multi person cooperation project to see how many lines of code each person has written
asp. Net read TXT file
redis6数据类型及操作总结
Require, require in PHP_ once、include、include_ Detailed explanation of the efficiency of repeated introduction of once class library
Jetpack Compose入门到精通
Blue Bridge Cup study 2022.7.5 (morning)
Brief introduction to revolutionary neural networks
嵌入式软件架构设计-消息交互
Usage, installation and use of TortoiseSVN
LeetCode_3(无重复字符的最长子串)
How to apply the updated fluent 3.0 to applet development
我为什么支持 BAT 拆掉「AI 研究院」
网络安全-HSRP协议