js每隔一段时间执行函数
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> </body> <script type="application/javascript"> setInterval(function(){ console.log(new Date()); },1000) </script> </html>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> </body> <script type="application/javascript"> setInterval(function(){ console.log(new Date()); },1000) </script> </html>