switchWindow() {
// if (window.focus && window.blur) {
// window.focus();
// window.onblur = () => {
// this.player.pause(); // 要执行的事件
// };
// }
// },
switchWindow() {
// if (window.focus && window.blur) {
// window.focus();
// window.onblur = () => {
// this.player.pause(); // 要执行的事件
// };
// }
// },
本文标题:浏览器切换tab页事件
本文链接:https://www.haomeiwen.com/subject/zgulaxtx.html
网友评论