Does Android support [removed].replace or any equivalent?

后端 未结 4 770
清歌不尽
清歌不尽 2020-12-06 15:16

It seems that the Android browser doesn\'t properly implement window.location.replace.

In most browsers, calling window.location.replace wi

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-06 15:59

    To make it work across all/most mobile platforms check out this link.

    Shows how to handle redirect for Android, iPad and iPhone.

    Android uses document.location whereas iOS supports window.location.replace

提交回复
热议问题