1.css改动但网页没有发生变化
CTRL + F5清理缓存
2.Flask基本框架
from flask import Flask, render_template, url_for
app = Flask(__name__)
@app.route('/')
def index():
return render_template('index.html', )
if __name__ == "__main__":
app.run()
3.Flask导入静态文件方法
<link rel="stylesheet" type="text/css" href={{ url_for('static', filename='css/index.css') }} />
<script src={{ url_for('static', filename='js/index.js')}}></script>