/Application folder
|-app.py
|/templates
|-hello.html
|/static
|-hello.js
|-hello.css
วิธีการเรียกใช้งานใน html
<html>
<head>
<script type = "text/javascript"
src = "{{ url_for('static', filename = hello.js') }}" ></script>
</head>
<body>
<input type = "button" onclick = "sayHello()" value = "Say Hello" />
</body>
</html>
ไม่มีความคิดเห็น:
แสดงความคิดเห็น