mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
退出全屏 ,需要水印1
This commit is contained in:
@@ -392,12 +392,11 @@ export default {
|
||||
console.log("按键 退出全屏 执行")
|
||||
}
|
||||
})
|
||||
|
||||
// 监听全屏事件的变化,保存数据
|
||||
window.addEventListener("fullscreenchange", () => {
|
||||
this.isFullscreen = this.isFullScreen();
|
||||
});
|
||||
window.addEventListener("keydown", (e) => {
|
||||
this.videoDom.addEventListener("keydown", (e) => {
|
||||
console.log("是否监听到");
|
||||
if(e.keyCode == 27){
|
||||
console.log("是否监听到 esc");
|
||||
|
||||
Reference in New Issue
Block a user