2021年3月18日星期四

pass variable from JavaScript to Python using Flask

It's an error I've been stuck on for a while.

var longitude = 20  

How would I pass this to python with Flask without using any complicated GET/POST requests? My end goal is to print the statement in the python console.

print(getfromjavascript(longitude))  

Pseudocode

https://stackoverflow.com/questions/66700319/pass-variable-from-javascript-to-python-using-flask March 19, 2021 at 07:02AM

没有评论:

发表评论