然而如果使用flask开发web,并且需要在本地导入已经写好的css js 文件或者image一系列,这些文件是静态文件,需要另外建一个文件夹static;
并且在html文件修改导入方法,
example: href={url_for('static',filename='css/xxx.css')}
or src={url_for('static',filename='')}
然而如果使用flask开发web,并且需要在本地导入已经写好的css js 文件或者image一系列,这些文件是静态文件,需要另外建一个文件夹static;
并且在html文件修改导入方法,
example: href={url_for('static',filename='css/xxx.css')}
or src={url_for('static',filename='')}
转载于:https://www.cnblogs.com/szj666/p/szj.html