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



reply all(2)
落寞尘埃

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

  • reply Thanks for the advice
    author 2018-07-13 11:39:32
无忌哥哥

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template