I have a table, in order to modify the data, I will give each line added to modify and submit button, the data processing is completed, I hope the background only returns the modified data, and then I in the front page of the modified data display, other places don't change, expressed in the form of a brush is only row data, do not brush line page, I'll use json data returned, but the page is just showing the data as a web page content, page style and other style is lost, want to ask bosses have a way of on the front end processing and display data, the first figure is every time I use render_template returns the entire page, if use json becomes the second picture,

CodePudding user response:
Novice asked bosses solve

CodePudding user response:
Flask support template way, but pass render_template data should be based on parameters way,
According to write a simple example, extend again,