setInterval的用法

mac2022-06-30  22

function show1(){    console.log("每隔1秒显示一次");}function show2(str){    console.log(str);}setInterval(show1,1000);setInterval(show2,2000,"每隔2秒我就会显示一次");

上面已经将函数的setInterval方法介绍了。

转载于:https://www.cnblogs.com/c-x-a/p/5460485.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)