Home >Web Front-end >JS Tutorial >js function timer implements regular reading of system real-time connection number_javascript skills

js function timer implements regular reading of system real-time connection number_javascript skills

WBOY
WBOYOriginal
2016-05-16 16:50:421136browse
Copy code The code is as follows:

function GetDeviceInfo()
{
setInterval(function( )
{
GetDeviceRealtimeConnect(); //js function to call the number of real-time connections
},
1000/*Startup interval, unit ms*/

);
}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn