python Flask EasyUI使用说明
<script src="{{url_for('static', filename='easyui/jquery.min.js')}}"></script> <script src="{{url_for('static', filename='easyui/jquery.easyui.min.js')}}"></script> <script src="{{url_for('static', filename='easyui/locale/easyui-lang-zh_CN.js')}}"></script>
<link rel=stylesheet href="{{ url_for('static', filename='easyui/themes/bootstrap/easyui.css') }}"> <link rel=stylesheet href="{{ url_for('static', filename='easyui/themes/icon.css') }}">
<img src="{{ url_for('static', filename='pic/flask.png') }}">
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Flask EasyUI</title> <!-- 载入EasyUI --> <script src="{{url_for('static', filename='easyui/jquery.min.js')}}"></script> <script src="{{url_for('static', filename='easyui/jquery.easyui.min.js')}}"></script> <script src="{{url_for('static', filename='easyui/locale/easyui-lang-zh_CN.js')}}"></script> <link rel=stylesheet href="{{ url_for('static', filename='easyui/themes/bootstrap/easyui.css') }}"> <link rel=stylesheet href="{{ url_for('static', filename='easyui/themes/icon.css') }}"> <script type=text/javascript> var $SCRIPT_ROOT = {{request.script_root|tojson|safe}}; </script> <script> $(document).ready(function(){ // 测试JQuery是否载入成功 console.log("document ready"); }); </script> </head> <body> <div style="margin:0px auto; width:80%"> <h2>Flask</h2> <img src="{{ url_for('static', filename='pic/flask.png') }}"> </div> <div style="margin:0px auto; width:80%"> <h2>EasyUI</h2> <img src="{{ url_for('static', filename='pic/easyui.png') }}"> </div> </body> </html>
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。