beetl 的用法,跟layui的laytpl的模版语言差不多。写的很舒服。没有thymeleaf那么麻烦。例如
<% for(loadDischargItem in loadDischargItemList){ %> <tr> <td>${loadDischargItemLP.index}</td> <td><input type="text" id="from" name="from" class="form-control" value="${loadDischargItem.from}"></td> <td><input type="text" id="to" name="to" class="form-control" value="${loadDischargItem.to}"></td> <td><input type="text" id="day" name="day" class="form-control" value="${loadDischargItem.day}"></td> <td><input type="text" id="description" name="description" class="form-control" value="${loadDischargItem.description}"></td> <td><input type="text" id="remarks" name="remarks" class="form-control" value="${loadDischargItem.remarks}"></td> <td><input type="button" value="delete" class="btn btn-sm btn-success" name="del[0]" onclick="deleteItem(0)"></td> </tr> <% } %>