Freemarker循環遍歷


<html>
<head>
    <title>測試頁面</title>
</head>
<body>
    學生列表:<br>
    <table border="1">
        <tr>
            <th>序號</th>
            <th>學號</th>
            <th>姓名</th>
            <th>年齡</th>
            <th>家庭住址</th>
        </tr>
        <#list stuList as stu>
        <tr>
            <td>${stu_index}</td>
            <td>${stu.id}</td>
            <td>${stu.name}</td>
            <td>${stu.age}</td>
            <td>${stu.address}</td>
        </tr>
        </#list>
    </table>
</body>
</html>

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM