1024programmer Java javascript-ajax partial refresh (new to front-end, new to ajax in the past two days, I don’t quite understand it yet, please give me some advice)

javascript-ajax partial refresh (new to front-end, new to ajax in the past two days, I don’t quite understand it yet, please give me some advice)

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.

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/javascript-ajax-partial-refresh-new-to-front-end-new-to-ajax-in-the-past-two-days-i-dont-quite-understand-it-yet-please-give-me-some-advice/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索