Answers
监听
fullscreenchange
事件
需加前缀
document.addEventListener("fullscreenchange", function(e) {
console.log("fullscreenchange", e);
});
document.addEventListener("mozfullscreenchange", function(e) {
console.log("mozfullscreenchange ", e);
});
document.addEventListener("webkitfullscreenchange", function(e) {
console.log("webkitfullscreenchange", e);
});
document.addEventListener("msfullscreenchange", function(e) {
console.log("msfullscreenchange", e);
});
不清楚 jquery 对这个事件的兼容程度,请自己查 jquery 文档
不能不显示提示框,这是浏览器实现的,控制不了
美国国防部
answered 9 years, 1 month ago