I have a function of doing evil, linkage query
 
ajax
ajax
content
jinja2
 
how to write something like this.
in addition, is there any good method for such a linkage query
now most of the queries are selected, and then the server returns a list to ajax,ajax for splicing html rendering
 feels that this kind of js stitching html is very difficult to write. All kinds of single quotation marks and double quotes  `  "" make a mess, and the stitching of jinja2 content makes it even more troublesome 
