search

Home  >  Q&A  >  body text

JS jump to PHP page stuck

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. .

按键盘手指磨破皮按键盘手指磨破皮2730 days ago1507

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-08-07 11:27:34

    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

    reply
    0
  • 树&刀布

    树&刀布2017-08-02 09:55:50

    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

    reply
    0
  • Cancelreply