js解决方法:

function locationReplace(url){
  if(history.replaceState){
    history.replaceState(null, document.title, url);
    history.go(0);
  }else{
     location.replace(url);
  }
}

出处是stackoverflow,其他方法还有就是原生客户端的解决方法,地址:https://stackoverflow.com/questions/14333620/android-webview-location-replace-doesnt-work

相关文章:

  • 2021-07-28
  • 2021-11-19
  • 2021-08-06
  • 2021-11-07
  • 2021-10-27
  • 2021-06-25
  • 2021-07-29
  • 2021-06-07
猜你喜欢
  • 2021-04-07
  • 2021-04-11
  • 2021-12-13
  • 2021-09-20
  • 2021-09-04
  • 2021-10-30
  • 2021-12-04
  • 2021-07-16
相关资源
相似解决方案