From 41fa67a026ea1754275169c7da5f053c3ff8f362 Mon Sep 17 00:00:00 2001 From: MarkusJoe Date: Thu, 14 Apr 2022 22:21:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E7=9A=84html=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/templates/index.html | 46 ++++++++++++++++++++++++++++++++-------- app/templates/list.html | 28 +++++++++++++++++++++--- 2 files changed, 62 insertions(+), 12 deletions(-) diff --git a/app/templates/index.html b/app/templates/index.html index f2f9eb2..a75d274 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -5,17 +5,22 @@ Request Counter | {{ remote_address }} + +
+

+ 应用名: 访问次数计数器 +

+

+ 简介: 可以使用SVG矢量图的形式来显示页面的访问次数 +
+ 或者通过API的方式获取原始计数数据 +

+
-
- 看到这句话就说明程序正常运行啦!! 查看文档 -
-
- 服务端使用Flask开发没有使用异步编程 -
点击查看已部署好的调用示例 @@ -31,9 +36,32 @@ 你可以在注明来源版权信息的情况下对源代码进行任意分发和修改以及衍生
-
- 你的IP地址为: {{ remote_address }} + +
+ 请求地址来源: {{ remote_address }} +
+
+
+
+ fast_test_example_svg +
+
+ +
+ test-example当前计数数据值: +

+
+
+
+
+ 开发周期
\ No newline at end of file diff --git a/app/templates/list.html b/app/templates/list.html index 4bdcfcb..c1447a8 100644 --- a/app/templates/list.html +++ b/app/templates/list.html @@ -1,10 +1,32 @@ - - $Title$ + + All data + -$END$ +
+

+ 数据库内已有数据 +

+ + + + + + {#使用Jinja2模板来快速遍历传入的列表数据#} + {% for value in data %} + + + + + {% endfor %} +
+ 名称 + + 次数 +
{{ value['name'] }}{{ value['times'] }}
+
\ No newline at end of file