📄 function.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %><html><head> <title>使用JSTL函数标签</title></head><body><c:set var="s1" value="Welcome to the JSP world,Liuyongpo"/>${s1}<br><h2>\${fn:contains(string, substring)} </h2>Substring=Liuyongpo Result=${fn:contains(s1, "Liuyongpo")}<br>Substring=liuyongpo Result=${fn:contains(s1, "liuyongpo")}<br><h2>\${fn:containsIgnoreCase(string, substring)} </h2>Substring=Liuyongpo Result=${fn:containsIgnoreCase(s1, "Liuyongpo")}<br>Substring=liuyongpo Result=${fn:containsIgnoreCase(s1, "liuyongpo")}<br><h2>\${fn:startsWith(string, prefix)} </h2>Substring=Welcome Result=${fn:startsWith(s1, "Welcome")}<br>Substring=Liuyongpo Result=${fn:startsWith(s1, "Liuyongpo")}<br><h2>\${fn:endsWith(string, suffix)} </h2>Substring=Welcome Result=${fn:endsWith(s1, "Welcome")}<br>Substring=Liuyongpo Result=${fn:endsWith(s1, "Liuyongpo")}<br></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -