bootstrap datatable分页表不工作我在做什么错?我觉得这是有文件的任何人都可以看到我在做什么错bootstrap datatable分页表不工作
Live网站链接问题Click here to see live
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.12/css/dataTables.bootstrap.min.css">
<script language="javaScript" src="https://code.jquery.com/jquery-1.12.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://cdn.datatables.net/1.10.2/js/jquery.dataTables.min.js"></script>
<script language="javaScript" src="https://cdn.datatables.net/plug-ins/3cfcc339e89/integration/bootstrap/3/dataTables.bootstrap.js" type="text/javascript"></script>
<script type="text/javascript" class="init">
jQuery(function($) {
$('#example').DataTable();
});
</script>
<div class="container">
<div class="row">
<div class="col-md-12">
<table id="example" class="table table-striped table-bordered display" cellspacing="0" border="1" width="100%">
<script type="text/javascript">
/*
jQuery(function($) {
$('#datatable').dataTable();
$("[data-toggle=tooltip]").tooltip();
});
*/
</script>
<?php $i = 0; ?>
<?php foreach($data as $entry): ?>
<?php if($i==0){$count = count($entry);} ?>
<thead>
<tr>
<?php if($i==0): ?>
<?php foreach ($entry as $cell): ?>
<th><?php echo $cell; ?></th>
<?php endforeach; ?>
</thead>
<tfoot>
<tr>
<?php foreach ($entry as $cell): ?>
<th><?php echo $cell; ?></th>
<?php endforeach; ?>
</tr>
</tfoot>
<?php else: ?>
<?php
$keys = array_keys($entry,"");
// foreach empty key, we unset that entry
foreach ($keys as $k)
unset($entry[$k]);
?>
<tbody>
<?php foreach ($entry as $cell): ?>
<td><?php echo $cell; ?></td>
<?php endforeach; ?>
<tbody>
<?php endif; ?>
</tr>
<?php $i++; ?>
<?php endforeach; ?>
</table>
</div>
</div>
</div>
问候 数学
你可以把结果表的图片? (提供的链接不起作用)。 – Lvkz