添加了更多的html文件

This commit is contained in:
MarkusJoe
2022-04-14 22:21:41 +08:00
parent 81e90af094
commit 41fa67a026
2 files changed
+62 -12

No files matched your search

+25 -3
View File
@@ -1,10 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>$Title$</title>
<meta charset="UTF-8">
<title>All data</title>
<link rel="stylesheet" href="{{ url_for('static', filename='listing.css') }}">
</head>
<body>
$END$
<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>