摘要: 阻止冒泡事件即可 //jquery $("#btn").click(function(event){ event.stopPropagation();//阻止事件冒泡即可 }); //js document.getElementById("btn").onclick=function(event){ 阅读全文
posted @ 2019-12-24 15:16 _DC 阅读(2117) 评论(0) 推荐(0) 编辑
摘要: 通过js截取video窗口的一帧渲染到canvas。 如果需要保存为图片,只需将canvas保存为图片即可。 canvas保存为图片参考:https://www.cnblogs.com/dch0/p/11698982.html <!DOCTYPE html> <html> <head> <meta 阅读全文
posted @ 2019-12-24 10:55 _DC 阅读(2311) 评论(0) 推荐(0) 编辑