How to implement polling in javascript

前端 未结 0 1791
执笔经年
执笔经年 2020-11-27 14:56

I want to get data from the server every one second. Suppose that I have data.json in the server. I want to fetch that file. Can I use the following code.

fun         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题