JS gets stuck when jumping to other PHP pages. I tested it and found that the empty PHP file can be accessed. It should be that there is something wrong with the PHP code that I am accessing. I can’t jump with JS code. I can’t jump with PHP. The header can jump normally, which is really strange.
I would like to ask how to write general PHP code that may cause JS to not jump? I really can't check there are too many imported class files. .
In your case, I guess it may be an infinite loop. Your js jumps to the past, and php writes a return to the previous page, so it keeps jumping back and forth, and the page gets stuck. There is a problem with the code logic
As long as the PHP code is not written to return to the previous page, js can jump to it. If there is a problem with the code, the running result will not be displayed at most and the jump path will not be affected