我正在尝试为html表格集成flexigrid,如下所示。
<spring:url value="https://code.jquery.com/jquery-3.0.0.js" var="migrate" />
<script src="${migrate}"></script>
<spring:url value="https://code.jquery.com/jquery-migrate-3.0.0.js" var="migrae1"/>
<script src="${migrae1}"></script>
<spring:url value="/resources/js/flexigrid.pack.js" var="flexijs" />
<script src="${flexijs}"></script>
<spring:url value="/resources/css_flexi/flexigrid.css" var="flexicss" />
<link href="${flexicss}" rel="stylesheet" />
<spring:url value="/resources/css_flexi/flexigrid.pack.css" var="choosen" />
<link href="${choosen}" rel="stylesheet" />
$(document).ready(function () {
$('.flexme').flexigrid();
});
<form id="Form1" style="margin-left:5%;padding-top: 10px;">
<table id="roles" class="flexme">
<thead>
<tr>
<th width="100">Col 1</th>
<th width="100">Col 2</th>
<th width="100">Col 3 is a long header name</th>
<th width="300">Col 4</th>
</tr>
</thead>
<tbody>
<tr>
<td>This is data 1</td>
<td>This is data 2</td>
<td>This is data 3</td>
<td>This is data 4</td>
</tr>
<tr>
<td>This is data 1</td>
<td>This is data 2</td>
<td>This is data 3</td>
<td>This is data 4</td>
</tr>
</tbody>
</table>
</form>然而,它不起作用。我花了很长时间才找到错误。它帮不了我。甚至有很多websites.So都想把它贴在这里。有没有人能告诉我我哪里错了?提前谢谢。
发布于 2017-01-10 18:32:28
我的工作原理如下:
"msie of undefined error"了我试过使用"migrate“插件。尽管如此,错误仍然是一样的。jQuery.browser = {};(function () { jQuery.browser.msie = false;jQuery.browser.version = 0;if (navigator.userAgent.match(/MSIE (0-9+)./)) { jQuery.browser.msie = true;jQuery.browser.version = RegExp.$1;} })();
现在它可以正常工作了。但是对于分页和刷新部分,必须依赖于服务器端分页。
https://stackoverflow.com/questions/41552166
复制相似问题