当前位置:网站首页>Wechat applet for loop
Wechat applet for loop
2022-07-26 00:23:00 【Speed turtle】
1. First, in the js In file data It is defined list
periodList:[
{
id:1,
name:' The kindergarten '
},
{
id:2,
name:' Primary school '
},
{
id:3,
name:' Junior high school '
}
]2. Used on the page
<view>
<ul class="item-list">
<li wx:for="{
{periodList}}" wx:for-item="period"
wx:key="id">{
{period.name}}</li>
</ul>
</view>without wx:for-item="period" So the default is item
边栏推荐
猜你喜欢

Elementary C language - branch statements (if, switch)

IP Core: PLL

Shib (firewood Dog Coin) rose hundreds of times in January. What core elements does a hundred times coin need? 2021-05-09

CountDownLatch

letfaw

Research progress of data traceability based on the perspective of data element circulation

测试7年,面试华为最后面议要薪1万,HR说我不尊重华为,他们没有那么低薪资的岗位~

Unity -- Euler angle, quaternion

对比7种分布式事务方案,还是偏爱阿里开源的Seata(原理+实战)

用了MQ消息中间件后,我开始后悔了...
随机推荐
Elementary C language - branch statements (if, switch)
The way of understanding JS: what is prototype chain
This time, thoroughly understand promise principle
对比7种分布式事务方案,还是偏爱阿里开源的Seata(原理+实战)
[redis] ③ data elimination strategy, pipeline command, publish and subscribe
基于网络分析和文本挖掘的意见领袖影响力研究
Binary tree -- 700. Search in binary search tree
MySQL 索引使用有哪些注意事项呢?(从六个方面回答)
JVM 三色标记法与读写屏障
[英雄星球七月集训LeetCode解题日报] 第25日 树状数组
Packet switching and label switching in MPLS
Find the intermediate node of the linked list
C语言 预处理详解
FreeRTOS个人笔记-信号量
Solve page refresh without attaching data
Appium中控件元素封装类梳理
Sliding window_
[redis] ① introduction and installation of redis
Understanding of "dbdnet: a deep boosting strategy for imagedenoising"
分布式事务 :可靠消息最终一致性方案