How to read Python data in JS file

Python data can be read in {{admin_priv | safe}} mode in HTML file
how to read Python data in JS file?
scenario:
A page needs to embed B page as part of its own page. B page generates some pages needed by A through JS to provide B with Python data provided by B server.
B page needs Python data provided by B server (B"s original page reads Python data through script tag in its own index.html file). The problem now is that you don"t have the HTML file, but you still need Python data.
so, how do I read Python data in a JS file?
Note: Aamp B has its own server backend

Jul.08,2022

although it is a little difficult to understand, why not use iframe.


does not understand your problem, does not apply Ajax?

Menu