I have read the website and many of the answers are only to jump on the PC side and the mobile side. But I want to put this js in the head, in that case, every time I visit another page, I will perform the js jump back to the home page, so it won"t achieve the effect I want. What I want is to judge whether the current page is xxx.html first? If yes, continue to determine the PC side and the mobile side to jump to different home pages, if not, do not execute. Could you tell me how to write this js?