效果图:
直接上代码
<script>
$(document).ready(function () {
document.addEventListener("visibilitychange", function(){
document.title = document.hidden ? "回来呀老弟!!" :"来啦老弟!!";});
})
</script>
效果图:
<script>
$(document).ready(function () {
document.addEventListener("visibilitychange", function(){
document.title = document.hidden ? "回来呀老弟!!" :"来啦老弟!!";});
})
</script>