文章

Androidwebview-location-replace-不起作用

Android webview “location.replace” 不起作用

Android webview “location.replace” 不起作用

1
2
3
4
5
6
7
8
function locationReplace(url){
  if(history.replaceState){
    history.replaceState(null, document.title, url);
    history.go(0);
  }else{
     location.replace(url);
  }
}
本文由作者按照 CC BY 4.0 进行授权