나는이 작은 스크립트를 사용하여 here을 찾는데 노력하고 있습니다. 그러나 어떤 이유로 그것이 작동하지 않아서 그 이유를 알 수 없습니다. browse.jsp에서sortable.js가 JSP 페이지에서 작동하지 않습니다
내 머리 태그 :
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Parcourir les livres</title>
<script type="text/javascript" src="../../JS/sortable.js"></script>
</head>
내 테이블, 물론 같은 페이지의 :
이<table class="sortable" id="sortabletable">
<thead>
<th>Aperçu</th>
<th>Titre</th>
<th>Éditeur</th>
<th>Auteur</th>
<th>Prix</th>
</thead>
<%
for(Livre livre : livres){
%>
<tr>
<td>Image</td>
<td><% out.println(livre.getNom()); %></td>
<td><% out.println(livre.getEditeur()); %></td>
<td><% out.println(livre.getAuteur()); %></td>
<td><% out.println(livre.getPrix()); %></td>
</tr>
<% } %>
</table>
내가 시도 이후는 SRC 경로에서 온다 생각하지 않는다 내 페이지와 같은 디렉토리에 .js를 넣으십시오. 어쨌든 여기에 아마 자바 스크립트에 대한 경로가 잘못 내 tree
감사
음, 오류 콘솔에서 무엇을 말합니까? –
글쎄, 아무것도. 스크립트는 여기에없는 것처럼 작동합니다. – LMeyer
작동시키기 위해 호출해야하는 함수가 있습니까? 나는 사용하고있는 스크립트에 익숙하지 않다. –