html2canvas网页截图

new html2canvas(document.getElementById('js_content'), {

allowTaint:true,

    useCORS:true,

    width:$("#js_content").width(),

    height:$("#js_content").width()*0.7

}).then(canvas => {

html2canvas_img = canvas.toDataURL();

});

你可能感兴趣的:(html2canvas网页截图)