jQuery跳转页面
1.我们可以利用http的重定向来跳转
window.location.replace(“http://www.jb51.net“);
2.使用href来跳转
window.location.href = “http://www.jb51.net“;
3.使用jQuery的属性替换方法
3.1 $(location).attr(``'href'``, ``'http://www.jb51.net'``);
3.2 $(window).attr(``'location'``,``'http://www.jb51.net'``);
3.3 $(location).prop(``'href'``, ``'http://www.jb51.net'``)
参考
https://www.cnblogs.com/jiangyi0215/p/6893200.html
还没有评论,来说两句吧...