修改部分细节

This commit is contained in:
MarkusJoe
2022-04-15 20:47:05 +08:00
parent 1869e14d53
commit d306188caf
5 files changed
+245 -301

No files matched your search

-32
View File
@@ -1,32 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>All data</title>
<link rel="stylesheet" href="{{ url_for('static', filename='listing.css') }}">
</head>
<body>
<div class="head">
<h2>
数据库内已有数据
</h2>
<table class="table">
<tr>
<th>
名称
</th>
<th>
次数
</th>
</tr>
{#使用Jinja2模板来快速遍历传入的列表数据#}
{% for value in data %}
<tr>
<td>{{ value['name'] }}</td>
<td>{{ value['times'] }}</td>
</tr>
{% endfor %}
</table>
</div>
</body>
</html>