前端页面跳转
window.location.replace(“https://www.cnblogs.com/”);
window.location.href = “https://www.cnblogs.com/”;
window.location.href=’/program/details?programId=’+id
使用jQuery的属性替换方法
$(location).attr(‘href’, ‘https://www.cnblogs.com/’);
$(window).attr(‘location’,‘https://www.cnblogs.com/’);
$(location).prop(‘href’, ‘https://www.cnblogs.com/’)