直接上代码说明吧
刷新前
console.log(history.length); // 输出:1
history.replaceState(null,null,'?a=1'); // 现有参数为 ?b=1
location.reload();
刷新以后
console.log(history.length); // 输出:2
测试环境: android8.0.0 WKWebview 内核是chrome
ios环境下面没有问题,想知道这是android有单独的处理或者约定吗? 求大神指导
应该是你的代码不准确,没能复现这个问题