- 博客(1)
- 收藏
- 关注
原创 jinja2&jquery的路由跳转
前后端不分离模式(jinja2 jquery)路由文件@bp.route(’/index’)@login_requireddef index():return render_template(‘index.html’)jinja2的路由跳转方式是href="{{ url_for(‘main.index’) }}"jquery的方式是location.href ="/admin/index"那么这种情况下如果写成location.href ="main.index"肯定是不对的应该是jque
2020-09-29 11:24:57 1073 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人