template模板循环嵌套循环
2024-09-01 21:26:53
template嵌套循环写法:在第一次循环里面需要循环的地方再写个循环,把要循环的数据对象改为第一层的循环对象别名
//template模板循环嵌套循环
<script id="banner" type="text/html">
{{each data item}}
<div class="swiper-slide" >
{{each item item1}}//each后面的data改变成item
<div class="banner-box" cardId={{item1.card_id}} price={{item1.price}}>
<p><i>¥</i><span>{{item1.price}}</span></p>
<p>赠 {{item1.price}}MLC</p>
</div>
{{/each}}
</div>
{{/each}}
</script>
模板文档 https://aui.github.io/art-template/zh-cn/docs/installation.html
模板下载地址 https://github.com/aui/art-template
最新文章
- static关键字总结
- Intellij idea开发Hadoop MapReduce程序
- Moto G如何进入开发者选项
- 实例介绍Cocos2d-x物理引擎:使用关节
- 149. Max Points on a Line
- iptables命令 高级网络
- 运行android程序的时分出现了No compatible targets were found.Do you wish to.
- 【强连通分量】Bzoj1654 [Usaco2006 Jan]The Cow Prom 奶牛舞会
- LeetCode算法题-Find Mode in Binary Search Tree(Java实现)
- Qt 快捷键
- 网站被k
- Python shelve 模块
- 常用css字体英文写法
- [IR] Time and Space Efficiencies Analysis of Full-Text Index Techniques
- 计算属性(computed)、方法(methods)和侦听属性(watch)的区别与使用场景
- 【转载】 Pytorch(0)降低学习率torch.optim.lr_scheduler.ReduceLROnPlateau类
- Java快速开发平台,JEECG 3.7.6性能增强版本发布
- DRAM(动态)存储器
- python各种模块的使用
- DeepLearning Intro - sigmoid and shallow NN