When debugging the project, the asynchronous request of ajax is used during onmouseover. Onmouseover is successfully triggered when the mouse moves to a link when the page is loaded for the first time.
When the mouse moves to another link and triggers onmouseover, the original connection is still displayed.
It was strange. After checking the information, I found out that it was due to IE caching.
After the first request, the same URL was requested again
because the page was cached, so the asynchronous page was not triggered.
Solution:
Add random numbers to the parameters in the URL so that the URL of the page requested is different each time,
thus avoiding IE caching.
url = url + "&num="+Math.round(Math.random()*10000);
AJAX is good, but I feel that sometimes when doing projects, you still have to sacrifice some in order to consider PV and user experience.
What we have here is PV>Experience, alas...
I don’t know if the page with AJAX asynchronous request is counted as PV on the webmaster and Alexa...
If anyone knows about it, can you give me some advice... Thanks in advance Over...o(∩_∩)o...