今天碰到pushState 在ios上不生效,找了半天发现用这个可以
window.addEventListener("popstate", function (e) { window.location.href = location.href; });