Using ajax to request data on a page, what is the alternative to piecing together strings to loop the returned data? Res.render can’t be rendered.
It seems that you are using express, that is, the page is rendered by the server, res.render cannot pass to a rendered page, so it must be ajax to fetch the data and then perform certain dom operations. This process has little to do with the server, so just get the data. After all, it is to splice strings and put them into the document inside.