1、JavaScript页面跳转

  

1.我们可以利用http的重定向来跳转

window.location.replace("网址");


2.使用href来跳转

window.location.href = "网址";

 

2、使用功能jQuery页面跳转

 $(location).attr('href', ‘网址’);

 $(window).attr('location',‘网址’);

 $(location).prop('href',‘网址’)

 

相关文章:

  • 2022-12-23
  • 2021-07-12
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-12-24
  • 2022-02-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-10-15
  • 2021-12-15
  • 2021-09-21
相关资源
相似解决方案