Jquery跳转页面的方式

1、利用http的重定向来跳转

window.location.replace("http://www.php");

注意该方式是直接替换当前页面url为后者,如果后页面中有history.back(),则无法成功返回

2、使用href来跳转

window.location.href = "http://www.php";

3、使用jQuery的属性替换方法来实现跳转

$(location).attr('href', 'http://www.php');

$(window).attr('location','http://www.php');

$(location).prop('href', 'http://www.php')

更多推荐

Jquery跳转页面的方式