在js中定时调用函数foo()如何写<script>function foo(){alert(new Date())setTimeout("foo()",5000)}foo()<script><2023-02-22JavaScript120