前端页面跳转
window.location.replace(“https://www.cnblogs.com/”);
window.location.href = “https://www.cnblogs.com/”;
使用jQuery的属性替换方法
$(location).attr(‘href’, ‘https://www.cnblogs.com/’);
$(window).attr(‘location’,‘https://www.cnblogs.com/’);
$(location).prop(‘href’, ‘https://www.cnblogs.com/’)
来源:CSDN
作者:W_a_n_g_X_
链接:https://blog.csdn.net/W_a_n_g_X_/article/details/103910884