javascript - How to clear the data returned by the previous request when using ajax to request data
天蓬老师
天蓬老师 2017-05-31 10:39:23
0
1
733

When requesting data with ajax, the returned data is appended to the dom. When the next ajax request is made, the returned data will be superimposed with the data returned for the first time. Do you have any good methods to solve this kind of multiple requests? Data overlay problem?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
小葫芦

Did you use append? Then replace it with the .html() method

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!