html2canvas(包含对svg的处理)
1 为处理svg,需引入canvg.js下载链接:https://github.com/canvg/canvg//以下是对svg的处理var svgElem = $('#div_id').find('svg');svgElem.each(function (index, node) { //获取svg的父节点 var parentNode = node.parentNode; //获取svg的html代码 var svg = node.outerHTML.tr.
原创
2020-08-19 10:39:23 ·
4300 阅读 ·
0 评论