The problem of DIV cache generated by dynamic JS

Front-end page A DIV default display:none, page JS sends AJAX and then the request to the parameter shows that there are two input in the DIV of DIV,display:block;

shows that several are judged by the returned parameters. If 1 is returned, one is displayed, but I find that only the DIV that pops up for the first time is correct

after each request.

then click on an input whose parameters are different and the number of pages will not change until the next page is refreshed. Every time the page is not refreshed, it is the same as the one that popped up last time

is the cache of the last page. Then the div is grouped together, and then display:none

is judged if it is not displayed.

I know I can judge at the back end and go back, but I want to know why this doesn"t work. Is there any good solution

Jun.03,2021
Menu