老师帮忙检查下
来源:2-8 自由编程
爬海东56
2020-04-25 11:24:48
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
request.setAttribute("x", 5);
%>
<c:if test="${x>0&&x<=10 }">
<h2 style="color: blue">1-10之间的整数</h2>
</c:if>
<c:if test="${x>10&&x<=20 }">
<h2 style="color: blue">11-20之间的整数</h2>
</c:if>
</body>
</html>
1回答
同学完成的不错,加油,祝学习愉快~
相似问题