Django + ajax json returned one by one to display the data values in each pass and back pages and pages

A value passed back by Ajax, the return value of a column in a database table based on the values, and then one by one to display the page, and add hyperlinks to each, you can click to see details

1. Ajax reached a value obtained by the background, the red part of the background to the traditional values ​​Django, blue is the ID of a tag, to display the value by one to the label, the green part is added to the value of the hyperlink, and to pass the value Backstage

2. Background received data, and returns a query to the front end of a column,

3. Click on the hyperlink, traditional values ​​and return to a page

Hyperlinks to the background processing function is as follows, with reference to tutorials, plus safe filters: https://www.ziqiangxuetang.com/django/django-json-templates.html

4. After return to ncbi.html page, and will pass over the value, and automatically load function getNcbi

5.getNcbi follows function

Achieve the following functions

 

Guess you like

Origin www.cnblogs.com/JadenFK3326/p/11565741.html