> setTimeout实现setInterval
```javascript
function fun(){
var time = setTimeout(fun,1000);
}
fun();
```
> setTimeout实现setInterval
```javascript
function fun(){
var time = setTimeout(fun,1000);
}
fun();
```
本文标题:setTimeout实现setInterval
本文链接:https://www.haomeiwen.com/subject/gcvjuqtx.html
网友评论