TP5.0 How to update the variable values in the interface template without refreshing
2018-07-12 17:50:56
0
2
1218
I am a beginner and want to add a search function to a data list. I just click the search button and use the returned results to directly assign values to the original data list
There are two solutions
1. Use ajax technology to get the variables from the background, and then reassign them to the template
2. Predefine the variable array in js. When you click the search button , change the variable value in the template
Use ajax to send request data, which is the content you want to search. When ajax returns, use jquery to dynamically insert data. This is my idea.