Created
March 5, 2018 08:41
-
-
Save ati-ince/d7f0d9138ca43cc3c7a5c3bff3daf27e to your computer and use it in GitHub Desktop.
Test1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, render_template | |
app = Flask(__name__) | |
@app.route("/") | |
def index(): | |
return render_template("index.html") | |
if __name__ == '__main__': | |
app.run(debug = True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sayHello() | |
{ | |
alert("Hello World") | |
} | |
function ConsoleI() | |
{ | |
console.info("xx hello") | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<body> | |
<input type = "button" onclick = "ConsoleI()" value = "Say xx" /> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment