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?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c02b5f-4765a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c02b5f-4765a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?