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

最新文章

  1. static关键字总结
  2. Intellij idea开发Hadoop MapReduce程序
  3. Moto G如何进入开发者选项
  4. 实例介绍Cocos2d-x物理引擎:使用关节
  5. 149. Max Points on a Line
  6. iptables命令 高级网络
  7. 运行android程序的时分出现了No compatible targets were found.Do you wish to.
  8. 【强连通分量】Bzoj1654 [Usaco2006 Jan]The Cow Prom 奶牛舞会
  9. LeetCode算法题-Find Mode in Binary Search Tree(Java实现)
  10. Qt 快捷键
  11. 网站被k
  12. Python shelve 模块
  13. 常用css字体英文写法
  14. [IR] Time and Space Efficiencies Analysis of Full-Text Index Techniques
  15. 计算属性(computed)、方法(methods)和侦听属性(watch)的区别与使用场景
  16. 【转载】 Pytorch(0)降低学习率torch.optim.lr_scheduler.ReduceLROnPlateau类
  17. Java快速开发平台,JEECG 3.7.6性能增强版本发布
  18. DRAM(动态)存储器
  19. python各种模块的使用
  20. DeepLearning Intro - sigmoid and shallow NN

热门文章

  1. Android中如何判断内存卡是否存在
  2. 谁是嫌疑犯问题Python枚举法
  3. mockjs介绍
  4. 使用PyQt5自制文件查找工具,并生成EXE文件
  5. 2.Struts2-Action
  6. angular实现对百度天气api跨域请求
  7. postman安装时提示打不开
  8. Delphi 字段的操作
  9. Galera Cluster 实现mysql的高可用 (Percona XtraDB Cluster)
  10. YII2-按需加载并管理静态资源(CSS,JS)