$("#btn-html2canvas").on("click",function(){//btn-html2canvas为按钮 //content-main为要转换的元素的id html2canvas(document.getElementById('content-main'), { onrendered: function(canvas) { document.body.appendChild(canvas); }, 300, height: 300 }); })
$("#btn-html2canvas").on("click",function(){//btn-html2canvas为按钮 //content-main为要转换的元素的id html2canvas(document.getElementById('content-main'), { onrendered: function(canvas) { document.body.appendChild(canvas); }, 300, height: 300 }); })