JS 无返回跳转

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

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部