目前我在所有页面上都有问题。页面包含一个带有提交按钮和包含按钮的表格的问题。问题是每当我点击编辑按钮the table
css
和javascript
都不见了。点击一个按钮后,CSS an javascript消失
这里是jascript代码
<script type="text/javascript">
$(document).ready(function() {
var table = $('#datatable').dataTable();
var tableTools = new $.fn.dataTable.TableTools(table, {
'aButtons' : [ ],
'sSwfPath' : 'js/copy_csv_xls_pdf.swf'
});
$(tableTools.fnContainer()).insertBefore('#datatable_wrapper');
});
</script>
表
<table id="datatable" class="hover" >
<thead>
<tr>
<th width="80">Poll ID</th>
<th width="120">Poll Name</th>
<th width="120">Poll Description</th>
<th width="120">poll publisher</th>
<th width="60">Edit</th>
<th width="60">Delete</th>
<th width="60">Voter</th>
<th width="60">Afficher courbe</th>
</tr>
</thead>
<tfoot>
<tr>
<th width="80">Poll ID</th>
<th width="120">Poll Name</th>
<th width="120">Poll Description</th>
<th width="120">poll publisher</th>
<th width="60">Edit</th>
<th width="60">Delete</th>
<th width="60">Voter</th>
<th width="60">Afficher Courbe</th>
</tr>
</tfoot>
<c:forEach items="${listpolls}" var="poll">
<tbody>
<tr>
<td>${poll.id_poll}</td>
<td>${poll.titre}</td>
<td>${poll.description}</td>
<td>${poll.emp_login}</td>
<td><a href="<c:url value='/poll/edit/${poll.id_poll}' />">Edit</a></td>
<td><a href="<c:url value='/poll/remove/${poll.id_poll}' />">Delete</a></td>
<td><a href="<c:url value='/poll/voter/${poll.id_poll}' />">Vote</a></td>
<td><a href="<c:url value='/sa/${poll.id_poll}' />">Afficher courbe</a></td>
</tr>
</c:forEach>
</tbody>
</table>
下面是表的照片前,我点击编辑。
现在
正如你所看到的css和javascipt的代码都不见了。
我在这里做错了什么?任何帮助深表感谢。
似乎你要进入页面'/ poll/edit/$ {poll.id_poll}',CSS和JS是否存在于该网页上? –
其实** /民意调查/编辑/ $ {poll.id_poll} **被重定向到同一页面。 –
比较页面重定向前后浏览器网络选项卡中的CSS和JS请求URL。 –