06 2021 档案
摘要:1.jq-signature http://bencentra.github.io/jq-signature/ 支持的jquery版本低 2.HTML5 canvas http://www.htmleaf.com/Demo/201505281922.html 支持的jquery版本低 3. sign
阅读全文
摘要:官网文档: http://html2canvas.hertzen.com/ 使用的是 jquery 3.2.1 html2canvas 1.0.0-rc.7 截取根据id的指定区域: var canvasOtherTopHeight = $('.heading').height() + 31 + $
阅读全文
摘要:使用下面方法在监听普通的input的change事件正常 $('#pp').on('change', 'input.videos_poster_input', function () { console.log(' '); }) 以上代码在监听动态添加的input的事件就失效 可以采用以下方式:将父
阅读全文
摘要:function getObjectURL(file) { var url = null; if (window.createObjectURL != undefined) { // basic url = window.createObjectURL(file); } else if (windo
阅读全文
摘要:$('video').trigger('play'); $('video').trigger('pause'); 判断video播放器的播放状态,并进行切换播放,需要这样 let video = $('video').get(0); if(video.paused) { video.play();
阅读全文