V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
oddisland
V2EX  ›  问与答

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

  •  
  •   oddisland · 2018-07-20 00:07:06 +08:00 · 695 次点击
    这是一个创建于 2123 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    2 条回复    2018-07-20 01:16:11 +08:00
    34C
        1
    34C  
       2018-07-20 01:15:10 +08:00
    window.location.href = "https://www.v2ex.com/t/472511"
    34C
        2
    34C  
       2018-07-20 01:16:11 +08:00
    window.location.assign("https://www.v2ex.com/t/472511")
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1389 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:44 · PVG 01:44 · LAX 10:44 · JFK 13:44
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.