微信中location.reload失效

var len = window.location.href.indexOf("?");
if(len>0){
    window.location.href=window.location.href.substring(0,len)+"?"+Math.random();
}else{
    window.location.href=window.location.href+"?"+Math.random();
}
 
原文地址:https://www.cnblogs.com/liuhao-web/p/11392943.html