简体   繁体   中英

Passing HTML entry from Flask to front end

So far I have been passing data from Flask to the client using Javascript and DOM. I have been looping through all the contents in the array and creating a new DOM element for each.

However, I'd like to know if there's any better way to do this. I did some googling, but could not find anything useful.

not much info on this but without knowing anything or what you know or don't know.

I haven't used flask but I used django.

Create an API Using Flask and python at the backend.

with the API end points you create using flask.

then fetch the data using JavaScript fetch on the front end/client side.

hope that helps a little

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM