<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h1>创建个人信息</h1>
<form action="/userInfo" method="post" accept-charset="utf-8">
{% csrf_token %}
<p>姓名<input type="text" name="username"></p>
<p>性别<input type="text" name="sex"></p>
<p>邮箱<input type="text" name="email"></p>
<p><input type="submit" value="登录"></p>
</form>
<hr>
<h1>信息展示</h1>
<table border="1px">
<tr>
<td>姓名</td>
<td>性别</td>
<td>邮箱</td>
</tr>
{% for i in info_list %}
<tr>
<td>{{ i.username }}</td>
<td>{{ i.sex }}</td>
<td>{{ i.email }}</td>
</tr>
{% endfor %}
</table>
<script src="/statics/jquery/jquery-3.4.0.js"></script>
<script>
{% load staticfiles %}
{#$("h1").CSS("color","red")#}
$("h1").css("color","red")
</script>
</body>
</html>