摘要: 需求:每隔3秒刷新一次,重新获取接口数据 解决: 1 let that=this; 2 window.setInterval(() => { 3 setTimeout(()=>{ 4 that.fetchDevice();//我们的获取接口数据函数 5 },0) 6 }, 30000) setTim 阅读全文
posted @ 2020-10-29 09:17 一江春水向东刘小姐 阅读(3566) 评论(0) 推荐(0) 编辑