oddisland
V2EX  ›  问与答

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

  •  
  •   oddisland · Jul 20, 2018 · 1127 views
    This topic created in 3058 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   ·   2356 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 13:43 · PVG 21:43 · LAX 05:43 · JFK 08:43
    ♥ Do have faith in what you're doing.