即时尝试为从查询结果生成的coulpe表做分页。正如在试图使用引导程序插件链接:http://www.bootply.com/lxa0FF9yhwBootstrap 3表分页错误
当我运行页面时,我在控制台选项卡中出现此错误:未捕获TypeError:children.size不是一个函数,重定向我在这部分该片段
var numItems = children.size();
我是一个jQuery总共初学者,不知道如何解决这个问题。 任何帮助非常感谢,非常感谢! 表中的问题:
<h2 class="text-center">Reservations For Today</h2>
<hr>
<table class="table table-hover" id="myTable">
<thead>
<th>Reservation ID</th>
<th>User ID</th>
<th>Table #1</th>
<th>Table #2</th>
<th>Persons</th>
<th>Reservation Made on</th>
<th>Reserved by</th>
<th>Reserved via</th>
<th>Reserved for</th>
<th>Arrival</th>
<th>Departure</th>
<th>Reservation Status</th>
<th>Attendance</th>
</thead>
<tbody id="myTableBody">
<?php
$sql4 = "SELECT * FROM reservations WHERE reserve_date = '$today' ORDER BY reservation_status ASC, reserve_date ASC, reserve_time_start ASC";
$result4 = mysqli_query($conn, $sql4);
while($row = mysqli_fetch_assoc($result4)){
echo '<tr>';
foreach($row as $field) {
if($field === null){
echo '<td>' . " - " . '</td>';
}else{
echo '<td>' . htmlspecialchars($field) . '</td>';
}
}
echo '</tr>';
}
?>
</tbody>
</table>
<div class="col-md-12 text-center">
<ul class="pagination pagination-lg pager" id="myPager"></ul>
</div>
<button type="button" class="prev">Previous</button>
<button type="button" class="next">Next</button>
<button id="myBtn">Edit Attendance</button>
提醒一下:https://stackoverflow.com/help/someone-answers –
upvoted和接受的答案,非常感谢! –