使用方法:

html2canvas($(".meeting-contractor-view-content"), {

        onrendered: function (canvas) {
            var url = canvas.toDataURL();//图片地址
            $item.find("img").attr("src", url);
            self.len++;
            var set = setTimeout(function () {
                self.viewinit();
                clearTimeout(set);
            }, 1000);
        },
        width: 1920,
        height: 1000
    })

 

js库下载地址:https://github.com/pijiahao/Demo-Project 

 

相关文章:

  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
相关资源
相似解决方案