我使用javaScript来处理用户单击play暂停按钮时的播放和暂停按钮,但在我的情况下它不起作用--当单击play buttonUncaught TypeError:无法读取时,它会在我的控制台中抛出以下错误
properties of null (reading 'addEventListener')
at myMusic.js:46:12
这里是我的句柄播放暂停函数
let audioElement = new Audio('song/Si Tu Te Vas.mp3');
let masterPlay = document.getEleme
预期行为(在pc/windows浏览器上执行):h1报头"gif“消失并播放视频
移动行为:gif不会消失,但是视频会播放(所以js在开火)
为什么显示器在移动(android)铬上不能像在windows上那样工作呢?
辅助代码:
this.play();
this.removeAttribute("controls"); //works
//h1.style.display="none"; //does not work
this.previousSibling.style.display="none"; //does not wor