I don’t know how you structured it. Let’s talk about it roughly.
For example, get a report. There are pictures and text in it, and what is requested is data, including the text of the report and the address of the illustration. This data will be filled in the template and then inserted into the DOM. The browser will detect the DOM change and render it. For the newly added image element, the browser goes to the resource server to obtain the image according to the URL of the image. Among them, the templates can be directly obtained when the front-end is initialized and then hidden, or they can be dynamically obtained from the back-end according to the needs. This depends on what technology you use.
I don’t know how you structured it. Let’s talk about it roughly.
For example, get a report. There are pictures and text in it, and what is requested is data, including the text of the report and the address of the illustration. This data will be filled in the template and then inserted into the DOM. The browser will detect the DOM change and render it. For the newly added image element, the browser goes to the resource server to obtain the image according to the URL of the image. Among them, the templates can be directly obtained when the front-end is initialized and then hidden, or they can be dynamically obtained from the back-end according to the needs. This depends on what technology you use.
Ajax is enough to get the data and combine the page. What is the manager asking? This is