Javascript jQuery数据表和JSP
我试图将JQuery数据表添加到JSP页面,但什么也没发生。我检查是否找到了所有文件:jquery.dataTables.js、jquery.dataTables.css、jquery.js 这是我的JSP页面:Javascript jQuery数据表和JSP,javascript,jquery,html,jsp,jquery-datatables,Javascript,Jquery,Html,Jsp,Jquery Datatables,我试图将JQuery数据表添加到JSP页面,但什么也没发生。我检查是否找到了所有文件:jquery.dataTables.js、jquery.dataTables.css、jquery.js 这是我的JSP页面: <%@ page contentType="text/html; charset=UTF-8" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib p
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
<script type="text/javascript"
src="<c:url value="resources/jquery.js"/>"></script>
<link rel="stylesheet" type="text/css" href="<c:url value="resources/jquery.dataTables.css"/>" />
<script type="text/javascript"
src="<c:url value="resources/jquery.dataTables.js"/>"></script>
<script type="text/javascript">
$(function() {
$("#student").dataTable();
});
</script>
</head>
<body>
<table id="student">
<thead>
<tr><td>Students</td></tr>
</thead>
<tbody>
<c:forEach var="student" items="${students}" varStatus="loopCounter">
<tr>
<td>${loopCounter.count}</td>
<td>${student.studentFullName}</td>
<td>${student.studentBook}</td>
<td>${student.groupStudent.groupStudentNumber}</td>
<td>${student.studentEnter}</td>
<td>${student.studentOKR}</td>
</tr>
</c:forEach>
</tbody>
</table>
</body>
您是否在Firebox上使用浏览器开发者控制台Firbug,在Chrome和Safari中使用开发者选项卡。。它会向您显示JS错误您使用的浏览器是什么?我使用Chrome,但没有发现错误