会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wtaure
2017年12月20日
实现搜索功能
摘要: 准备视图函数search() 修改base.html 中搜索输入框所在的 <form action="{{ url_for('search') }}" method="get"> <input name="q" type="text" placeholder="请输入关键字"> 完成视图函数sear
阅读全文
posted @ 2017-12-20 21:31 069王国栋
阅读(75)
评论(0)
推荐(0)
完成个人中心—导航标签
摘要: 个人中心—视图函数带标签页面参数tag@app.route('/usercenter/<user_id>/<tag>')def usercenter(user_id, tag): if tag == ‘1': return render_template('usercenter1.html', **
阅读全文
posted @ 2017-12-20 13:05 069王国栋
阅读(124)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告