How to use ajax to dock the interface provided by backend in python

how to use ajax to interface with the interface provided by the backend for python. Anyone who knows about it can help you.

Feb.28,2021

are you going to write a page script in python?


does not use requests library or urllib library to make HTTP link call interface

import requests
res = requests.get('http://www.example.com/api/something_list')
lst = res.json()
Menu