for example, write a timer in the console and call a method in the page regularly, but the page will be refreshed after the method is executed, so the timing code of the console will be invalid after the page is refreshed. Is there any way to solve it?