大家好,对jQuery 页面跳转的实现方法感兴趣的小伙伴,下面一起跟随三零脚本的小编来看看jQuery 页面跳转的实现方法的例子吧。
1、我们可以使用http重定向来跳转:经测试代码如下:
window.location.replace("http://www.q3060.com");
2、使用href来跳转 ,经测试代码如下:
window.location.href = "http://www.q3060.com";
3、使用jQuery的属性替换方法,经测试代码如下:
$(location).attr('href', 'http://www.q3060.com');
$(window).attr('location','http://www.q3060.com');
$(location).prop('href', 'http://www.q3060.com');