2016-07-15 97 views

回答

0

,你可以在滾動事件處理程序中調用socket.emit

window.addEventListener('scroll', function(event){ 
    //you may want to add some conditions first... 
    socket.emit('chat message', 'content'); 
})