jQuery项目内页面跳转方法 Emily_Mii 2023-02-02 450 阅读1分钟 jQuery项目跳转方式: 1.我们可以利用http的重定向来跳转 window.location.replace("b.html"); 2.使用href来跳转 window.location.href = "b.html"; 3.使用jQuery的属性替换方法 $(location).attr('href', 'b.html'); $(window).attr('location','b.html'); $(location).prop('href', 'b.html')