运行代码
(Shift+Enter)
HTML教程
奔月教程(runoon.com)
以下实例中,setInterval() 方法每 300 毫秒执行 setColor() 函数 ,该函数可以切换背景颜色。
停止切换
运行结果