首页 > 代码库 > JavaScript访问ab页面定时跳转代码

JavaScript访问ab页面定时跳转代码

 1 <!DOCTYPE html>
 2 <html lang="en">
 3 <head>
 4     <meta charset="UTF-8">
 5     <title>Document</title>
 6 
 7 </head>
 8 <body>
 9     
10 </body>
11     <script type=‘text/javascript‘>
12     function pload(){
13         setTimeout("location.href=http://www.mamicode.com/‘2.php‘",3000);
14     }
15     pload();
16     </script>
17 </html>

 

JavaScript访问ab页面定时跳转代码