$(window).on(‘focus‘, function() {
alert(1);
});
本文出自 “半城烟沙” 博客,请务必保留此出处http://vabc1314.blog.51cto.com/2164199/1561640