Html navigation-active invalidation after page jump

the page jumps after the navigation is clicked, but active will jump back to the default option after the current option flashes. What should I do?

to judge by seeing a method window.location.href after searching, but the performance is too low, is there any other way?

Mar.14,2021

is judged by url or by a browser cache such as cookie.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf7652-313d0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf7652-313d0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?