javascript使用setinterval()函数实现简单轮询操作的方法_javascript技巧