摘要:
登录功能完成: js:设置return html:设置 form input onclick="return fnLogin()" py: @app.route设置methods GET POST 读取表单数据 查询数据库 用户名密码对: 记住用户名 跳转到首页 用户名密码不对: 提示相应错误。 s 阅读全文
摘要:
1.js文件: onclick函数return True时才提交表单,return False时不提交表单。 2.html文件: 3.主py文件中: def regist(): if request.method == 'GET': return render_template('regist.ht 阅读全文