1 纯html法

<html>
<head> 
<meta http-equiv="Refresh" content="2; url=http://www.baidu.com" />   2秒后开始
</head>  
<body> 
    Loading... 
</body> 
</html>

 

2 javaScript法

<script>
    location = "http://www.baidu.com";     或者window.location、 document.location
</script>

 

3 PHP法

<?php 
    Header( "Location: http://www.baidu.com" ); 
?> 

 

相关文章:

  • 2021-12-31
  • 2022-12-23
  • 2022-01-25
  • 2021-12-31
  • 2022-02-08
  • 2021-05-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
相关资源
相似解决方案