问题描述
我正在尝试使用 wenzhixin 的引导表扩展。 在我的网络应用程序中,我有一个名为 Assets.jsp 的父页面和其他名称的其他子页面。 现在,当我在 Assets.jsp 中创建一个表时,没有问题,然后如果我在其中一个子页面中创建一个表,该表将显示没有样式和过滤器,只有 html 简单表。
示例:如果我将表放在 Assets.jsp 中
<link href="https://stackpath.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.13.1/bootstrap-table.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.13.1/bootstrap-table.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.13.1/locale/bootstrap-table-zh-CN.min.js"></script>
<table id="table" data-toggle="table" data-search="true" data-filter-control="true" data-show-export="true" class="table-responsive">
<thead>
<tr>
<th data-sortable="true" data-filter-control="input">Firstname</th>
<th data-sortable="true" data-filter-control="input">Lastname</th>
<th data-sortable="true" data-filter-control="input">Email</th>
</tr>
</thead>
<tbody>
<tr>
<td>John</td>
<td>Doe</td>
<td>john@example.com</td>
</tr>
<tr style="">
<td>Mary</td>
<td>Moe</td>
<td>mary@mail.com</td>
</tr>
<tr style="">
<td>July</td>
<td>Dooley</td>
<td>july@greatstuff.com</td>
</tr>
<tr style="">
<td>Anja</td>
<td>Ravendale</td>
<td>a_r@test.com</td>
</tr>
</tbody>
</table>
否则,如果我将表放入 AssetsContent.jsp,它是 Assets.jsp 的子项,并使用<s:include value="AssetsContent.jsp" />
包含在正文页面中。
我明白了
我能怎么做? 谢谢。
1楼
RaviKant Sharma
0
2019-03-11 11:36:27
使用具有额外功能的数据表:-
见示例: