xiao_hua_zi 2021-09-26 16:04 采纳率: 0%
浏览 33

为什么不循环呢 值拿过来了

{% for i in infos %}


<tr>
    <!--星期-->
    <td rowspan="2" width="50" align="center">{{i[0]["zs"]}}</td>
    <!--课程节次-->
    <td id="sad" rowspan="1" width="50" height="50"><span class="festival">{{i[0]["jc"]}}</span></td>
    <!--课程信息-->
    <td>
        <div class="timetable_con text-left">
            <u class="title showJxbtkjl" data-jxb_id="C6DC1DD955DE9AE2E0530100007FD0BD" style="cursor: pointer">
                <font color="blue">{{i[0]["js"]}}</font>
            </u>
            <p>
                <font color="blue">
                    <span class="glyphicon glyphicon-calendar"></span>
                    {{i[0]["js"]}}
                </font>
                <font color="blue">
                    <span class="glyphicon glyphicon-tower"></span>
                    {{i[0]["js"]}}
                    <span class="glyphicon glyphicon-map-marker"></span>
                    {{i[0]["js"]}}
                </font>
                <font color="blue"><span class="glyphicon glyphicon-user"></span> {{i[0]["js"]}}</font>
                <font color="blue"><span class="glyphicon glyphicon-tower"></span> {{i[0]["js"]}}</font>
                <font color="blue"><span class="glyphicon glyphicon-tower"></span> {{i[0]["js"]}}</font>
            </p>
        </div>
    </td>
</tr>

 {% endfor %}

</tbody>
  • 写回答

1条回答 默认 最新

  • xiaozhuge_S 2021-09-26 17:21
    关注

    你换成<% for (var i = 0; i < infos.length; i++) { %>

    ```
    <% } %>
    这种形式试试

    评论

报告相同问题?

问题事件

  • 创建了问题 9月26日

悬赏问题

  • ¥15 有赏,i卡绘世画不出
  • ¥15 如何用stata画出文献中常见的安慰剂检验图
  • ¥15 c语言链表结构体数据插入
  • ¥40 使用MATLAB解答线性代数问题
  • ¥15 COCOS的问题COCOS的问题
  • ¥15 FPGA-SRIO初始化失败
  • ¥15 MapReduce实现倒排索引失败
  • ¥15 ZABBIX6.0L连接数据库报错,如何解决?(操作系统-centos)
  • ¥15 找一位技术过硬的游戏pj程序员
  • ¥15 matlab生成电测深三层曲线模型代码