jQuery(function($) {
$.idleLogout({
logoutSeconds: 30,
countdownSeconds: 25,
logoutUrl: null
});
$(document).bind('UserActivity.idleLogout UserIdle.idleLogout IdleLogout.idleLogout CancelLogut.idleLogout IdleDialogUpdate.idleLogout', function(e) {
console.log(e.type, e.namespace, e);
});
});
使用此代码时出现上述错误