This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
2022-04-14 22:19:47 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
2022-04-14 22:21:41 +08:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<title>All data</title>
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='listing.css') }}">
|
2022-04-14 22:19:47 +08:00
|
|
|
</head>
|
|
|
|
|
<body>
|
2022-04-14 22:21:41 +08:00
|
|
|
<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>
|
2022-04-14 22:19:47 +08:00
|
|
|
</body>
|
|
|
|
|
</html>
|