gpt4 book ai didi

google-chrome - Chrome 打包应用 onActive

转载 作者:行者123 更新时间:2023-12-03 23:19:16 24 4
gpt4 key购买 nike

有没有办法处理 Chrome 打包的 appWindow 事件/非事件状态?类似这样的事件 onActiveonFocus

最佳答案

AppWindow 不提供此功能,但标准 DOM 窗口通过 window.onfocus 和 window.onblur 提供。

例如:

function windowLostFocus() {
stopPlayingMusic();
}

window.onblur = windowLostFocus;

关于google-chrome - Chrome 打包应用 onActive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19125579/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com