setTimeout(function(){
getData('chat.log?' + Math.random());}, 2000);
我想知道 getData()函数里的是什么意思?
解决方案
看上去像是给chat.log加个随机的查询参数,防止缓存用的。
setTimeout(function(){
getData('chat.log?' + Math.random());}, 2000);
我想知道 getData()函数里的是什么意思?
看上去像是给chat.log加个随机的查询参数,防止缓存用的。