oddisland
V2EX  ›  问与答

iOS Safari 网页无法使用 window.location 跳转,求解决办法?

  •  
  •   oddisland · Jul 20, 2018 · 1120 views
    This topic created in 3043 days ago, the information mentioned may be changed or developed.

    iOS Safari 网页无法使用 window.location 跳转,除了模拟点击有什么更好的解决方案么?

    2 replies  •  2018-07-20 01:16:11 +08:00
    34C
    34C
    Jul 20, 2018
    1
    window.location.href = "https://www.v2ex.com/t/472511"
    34C
    34C
    Jul 20, 2018
    2
    window.location.assign("https://www.v2ex.com/t/472511")
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4618 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 01:34 · PVG 09:34 · LAX 17:34 · JFK 20:34
    ♥ Do have faith in what you're doing.