📄 usingsubstring.jsp
字号:
<%@page contentType="text/html"%>
<%@page pageEncoding="Ms950"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head><title>演示字符串获取</title></head>
<body>
字符串:The JSTL functions<br>
索引 4~8 的子字符串(fn:substring):
${fn:substring("The JSTL functions",4,8)}<br>
JSTL之后的子字符串(fn:substringAfter):
${fn:substringAfter("The JSTL functions ","JSTL")}<br>
JSTL之前的子字符串(fn:substringBefore):
${fn:substringBefore("The JSTL functions ","JSTL")}<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -