在渲染html的时候,运行html报错,提示 Unexpected token ‘<’ 。这个错误是因为js文件的位置不对,需要把js文件放到static/js下,而不是static下。
附上渲染代码
<script src="{{ url_for('static',filename='js/echarts.min.js') }}" type = "text/javascript"></script>
在渲染html的时候,运行html报错,提示 Unexpected token ‘<’ 。这个错误是因为js文件的位置不对,需要把js文件放到static/js下,而不是static下。
附上渲染代码
<script src="{{ url_for('static',filename='js/echarts.min.js') }}" type = "text/javascript"></script>