2017年11月28日

摘要: 编写要求登录的装饰器 from functools import wraps def loginFirst(func): #参数是函数 @wraps(func) def wrapper(*args, ** kwargs): #定义个函数将其返回 #要求登录 return func(*args, ** 阅读全文
posted @ 2017-11-28 20:33 069王国栋 阅读(93) 评论(0) 推荐(0) 编辑

2017年11月24日

摘要: index.py denglu.html 父模板text.hrml shouye.html 实验截图 阅读全文
posted @ 2017-11-24 11:41 069王国栋 阅读(108) 评论(0) 推荐(0) 编辑

2017年11月22日

摘要: 登录功能完成: session: index.py denglu.html 截图 阅读全文
posted @ 2017-11-22 17:06 069王国栋 阅读(150) 评论(0) 推荐(0) 编辑
摘要: def regist(): if request.method == 'GET': return render_template('regist.html') else: username = request.form.get(‘username’)#获取form中的数据 判断用户名是否存在:存在报 阅读全文
posted @ 2017-11-22 17:02 069王国栋 阅读(123) 评论(0) 推荐(0) 编辑

2017年11月17日

摘要: 修改: 删除: 阅读全文
posted @ 2017-11-17 19:58 069王国栋 阅读(136) 评论(0) 推荐(0) 编辑

2017年11月14日

摘要: config.py 阅读全文
posted @ 2017-11-14 11:38 069王国栋 阅读(136) 评论(0) 推荐(0) 编辑

2017年11月13日

摘要: 带label的文本输入区域 (1)合理分配和利用信息资源(信息、信息技术和信息生产者),以节省信息系统的投资。 (2)通过制定战略规定,找出存在的问题,正确地识别出为实现企业目标MIS必须完成的任务,促进信息系统应用,带来更多的经济效益。 (3)指导MIS开发,用战略规划作为将来考核系统开发工作的标 阅读全文
posted @ 2017-11-13 18:00 069王国栋 阅读(157) 评论(0) 推荐(0) 编辑

2017年11月8日

摘要: 父模板 text.html 登陆页面:denglu.html 注册页面:zhuce.html 首页:shouye.html js文件:Mylogin.js 阅读全文
posted @ 2017-11-08 17:27 069王国栋 阅读(119) 评论(0) 推荐(0) 编辑

2017年11月4日

摘要: 夜间模式的开启与关闭 父模板的制作 阅读全文
posted @ 2017-11-04 19:24 069王国栋 阅读(124) 评论(0) 推荐(0) 编辑

2017年11月3日

摘要: 新建Flask项目。 设置调试模式。 理解Flask项目主程序。 使用装饰器,设置路径与函数之间的关系。 使用Flask中render_template,用不同的路径,返回首页、登录员、注册页。 用视图函数反转得到URL,{{url_for(‘login’)}},完成导航条里的链接。 from fl 阅读全文
posted @ 2017-11-03 17:50 069王国栋 阅读(137) 评论(0) 推荐(0) 编辑

导航