Skip to content

Commit c20db64

Browse files
committed
更新静态资源文件的处理方式
1 parent 9bb46c6 commit c20db64

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

template/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="UTF-8">
55
<title>python web</title>
66
<script type="text/javascript" src="/static/js/jquery/jquery.min.js"></script>
7-
<script type="text/javascript" src="/static/js/jsEncrypt.js"></script>
7+
<script type="text/javascript" src="{{ static_url('js/jsEncrypt.js') }}"></script>
88
<script type="text/javascript">
99
$(document).ready(function(){
1010
//解密测试
@@ -28,11 +28,11 @@
2828
I will try my best to learn it !
2929
<br/>
3030
<form method="post" action="/login">
31-
账号:<input type="text" id="username">
31+
<label for="username">账号:</label><input type="text" id="username">
3232
<br/>
33-
密码:<input type="text" id="password">
33+
<label for="password">密码:</label><input type="text" id="password">
3434
<br/>
35-
密参:<input type="text" name="payload" id="payload">
35+
<label for="payload">密参:</label><input type="text" name="payload" id="payload">
3636
<input type="button" id="encrypt" value="加密">
3737
<div id="err_show"></div>
3838
<button type="submit">登录</button>

0 commit comments

Comments
 (0)