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/')