The navigation made for li on the left side of the page can be added, deleted, and the name can be modified. However, once I modify, delete, or add it, the left side will be updated to the latest status, but click on the right side The content of the optional drop-down list in the pop-up window after “Move” (the content of the drop-down list is the left navigation) will not be updated to the latest additions, deletions or modifications. I just read the ajax knowledge and know the process to modify this problem. , but still don’t know how to write it, how to start?
Reply content:
The navigation made for li on the left side of the page can be added, deleted, and the name can be modified. However, once I modify, delete, or add it, the left side will be updated to the latest status, but click on the right side The content of the optional drop-down list in the pop-up window after “Move” (the content of the drop-down list is the left navigation) will not be updated to the latest additions, deletions or modifications. I just read the ajax knowledge and know the process to modify this problem. , but still don’t know how to write it, how to start?
In fact, I personally think whether AJAX is needed depends on whether the operations on your page require changing the background data or querying the background data from time to time. If there is no interaction with the background data, js can be used for front-end interaction
Please enter your name: Confirm
Wang Erxiao
Net three primary schools
Net size
I used jquery here.
Ajax dynamically refreshes the page after requesting data from the server. In this scenario, there is no need to interact with the server, so there is no need to use it. Of course, if you operate on the page, add or delete data from the database, ajax is undoubtedly a good choice.