ä¸é¢ä¾åç»åªä½æ·»å pause
äºä»¶çå¬ handlerï¼ç¶åäºä»¶åçæ¶ä¼ç» handler åéä¸ä¸ªæéä¿¡æ¯
ä½¿ç¨ addEventListener()ï¼
const video = document.querySelector("video");
video.addEventListener("pause", (event) => {
console.log(
"The Boolean paused property is now true. Either the " +
"pause() method was called or the autoplay attribute was toggled.",
);
});
ä½¿ç¨ onpause
äºä»¶çå¬å±æ§ï¼
const video = document.querySelector("video");
video.onpause = (event) => {
console.log(
"The Boolean paused property is now true. Either the " +
"pause() method was called or the autoplay attribute was toggled.",
);
};
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4