$(window).blur(function(){
//your code here
console.log('window blur');
});
$(window).focus(function(){
//your code here
console.log('window fouse');
});
浏览器获得焦点和失去焦点
最新推荐文章于 2022-11-23 09:28:51 发布
$(window).blur(function(){
//your code here
console.log('window blur');
});
$(window).focus(function(){
//your code here
console.log('window fouse');
});