📄 usingmodify.jsp
字号:
<%@page contentType="text/html"%>
<%@page pageEncoding="Ms950"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head><title>变动字符串内容</title></head>
<body>
字符串:The JSTL functions<br>
转换小写(fn:toLowerCase):
${fn:toLowerCase("The JSTL functions ")}<br>
转换大写(fn:toUpperCase):
${fn:toUpperCase("The JSTL functions ")}<br>
分割与结合字符串(fn:split/fn:join)
<c:set var="splitString"
value='${fn:split("The JSTL functions "," ")}' />
${fn:join(splitString,"-")}<br>
置换JSTL为Java(fn:replace):
${fn:replace("The JSTL functions ","JSTL","Java")}<br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -