如何解决如何在 Flask 的 Bootstrap 表中实现过滤器控件
我正在尝试在 Bootstrap 表的每一列中实现过滤器控件,但我不太确定该怎么做。该表连接到 MySQL 数据库,我使用 Flask 来显示表中的记录。
您可以在下面找到它在 HTML 中的样子。
<div class="container-fluid mx-auto pt-4">
<table class="table table-striped table-bordered" id="TableToExport" cellspacing="0">
<thead>
<tr>
<th>Date</th>
<th>Code</th>
<th>Project Name</th>
<th>Country</th>
<th>Brand</th>
<th>Category</th>
<th>Title</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for item in data %}
<tr>
<td>{{item[0]}}</td>
<td>{{item[1]}}</td>
<td>{{item[2]}}</td>
<td>{{item[3]}}</td>
<td>{{item[4]}}</td>
<td>{{item[5]}}</td>
<td>{{item[6]}}</td>
<td>{{item[7]}}</td>
</tr>
{% endfor %}
</table>
</div>
我找到了 bootstrap-table.min 库并尝试在 Github 上实现一个解决方案,但是,我不确定如何将它连接到 MySQL 表?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。