當我在我的項目中使用此功能: $(function() {
// Set idle time
$(this).idleTimer(2500);
});
比較這錯誤: $(...).idleTimer is not a function 這個庫: "inspinia.js",
"pace.min.js",
"idle-timer.min.js",
"toastr.
我在空閒庫中有這個功能,但我需要的是計算秒的動作時間,我的意思是活動時間(onclick,onscroll和按鍵)。 功能是: (function() {
var minutes = false;
var interval = 1000;
var IDLE_TIMEOUT = 5;
var idleCounter = 0;
var counter=0;
document.onclic
我知道我可以用C WINAPI庫如下得到用戶的空閒時間: LASTINPUTINFO lii = {sizeof(LASTINPUTINFO), 0};
GetLastInputInfo(&lii); //error handling ommitted, not the point here
int CurIdleTime = (getTickCount() - (lii.dwTime))/1