jq each的两种用法(笔记)
<div class="cart_content" th:each="oIdList:${orderIdList}"> <table> <tr class="table_head"> <th>订单号</th> <th colspan="3">商品</th> <th>商品金额</th> <th>商品数量</th> <th>总金额</th> </tr> <tr><td rowspan="0"><span th:text="${oIdList}"></span></td></tr> <tr class="table_content" th:each="o:${orderList}" th:if="${oIdList}==${o.id}" > <td class="show_img"> <img th:src="${o.image}" th:value="${o.sid}" th:title="${o.name}"/> </td> <td class="title" colspan="2"><span th:text="${o.name}">商品名字</span></td> <td class="cost">¥<span th:text="${o.price}">20.00</span>元</td> <td class="count"><span class="minus">-</span