在 JSP 頁面的 `
<td width="9%">
<a href="../city/query.html?interfaceId=${interfacesList.interfaceId}" title="詳情">
<i class="fa fa-folder-open fa-2x"></i>
</a>
<a href="../city/update.html?interfaceId=${interfacesList.interfaceId}" title="修改">
<i class="fa fa-pencil-square fa-2x"></i>
</a>
<c:if test="${interfacesList.bugs > 0}">
<a href="../city/queryBugs.html?interfaceName=${interfacesList.interfaceName}&methodsName=${interfacesList.methodsName}&interfacePath=${interfacesList.interdacePath}" title="錯誤報告">
<i class="fa fa-bug fa-2x">
</a>
</c:if>
</td>
仔細觀察代碼可發現,在 `
只需在 `` 後添加缺失的 `</i>` 即可:
<c:if test="${interfacesList.bugs > 0}">
<a href="..." title="錯誤報告">
<i class="fa fa-bug fa-2x"></i>
</a>
</c:if>
這是一個典型的「粗心導致的語法錯誤」,修復後頁面渲染即恢復正常。