pagearea.jsp
来自「这是AJAX的一个HTML实现! HTML标签AJAX的实现!」· JSP 代码 · 共 57 行
JSP
57 行
<%@ taglib uri="http://ajaxtags.sourceforge.net/tags/ajaxtags" prefix="ajax"%><jsp:useBean id="now" class="java.util.Date" /><h1>Area Tag Demo</h1>This area should not refresh: Date: ${now}<br /><ajax:anchors target="ajaxFrame"> <!-- Ajax this link --> Refresh first area <a href="pagearea.jsp" class="contentLink"> >></a></ajax:anchors><br /><br /><ajax:area id="ajaxFrame" style="width:300px; min-height:100px; height:100px;" styleClass="textArea" ajaxAnchors="true"> This is the first area and should be refreshed only when the first link or the link inside itself is clicked: <br /> It include a link to <a href="pagearea.jsp"> itself </a> <br /> Date: ${now}</ajax:area><br /><br />This area should not refresh: Date: ${now}<br /><ajax:anchors target="ajaxFrame2"> <!-- Ajax this link --> Refresh second area <a href="pagearea.jsp" class="contentLink"> >></a></ajax:anchors><br /><br /><ajax:area id="ajaxFrame2" style="background:#eee; width:300px; min-height:100px; height:100px;" styleClass="textArea" ajaxAnchors="true"> This is the second area and should be refreshed only when the second link or the link inside itself is clicked: <br /> Click this link to refresh <a href="pagearea.jsp"> itself </a> <br /> Date: ${now}</ajax:area><br /><br />This bottom area should not refresh: Date: ${now}<br>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?