search

Home  >  Q&A  >  body text

window.location.href. . . . invalid

The status value of 1 can be returned, but the page does not jump. What should I do?

太先生太先生2439 days ago1397

reply all(1)I'll reply

  • 麻狼

    麻狼2018-05-01 07:43:53

    You first:

    alert(window.locathion.href);

    See what will be displayed. If a message pops up, then:

    window.location.href = 'http://www.php.cn/';

    Try.

    reply
    0
  • Cancelreply