我正在学习在我的应用程序中使用 flask-bootstrap 扩展。但是当我从getbootstrap复制演示 html 代码时,它并没有像官方网站演示的那样工作。所以我在我的基本模板中覆盖了 head 块和 scripts 块,然后它工作得很好。
像这样
{% extends 'bootstrap/base.html' %}
{% block head %}
(my own head...)
{% endblock %}
{% block scripts %}
(my own scripts...)
{% endblock %}
像这样覆盖bootstrap/base.html
自己的头和脚本可以吗?会留下什么影响?