Skip to content

FEA-Dven/html2Canvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

html2Canvas

解决html2Canvas在ios13.4中失效问题

// 引入
import html2canvas from "../../lib/html2canvas";
// 使用, 全局window对象加入html2canvas,如果没有window就调用原来的,所以需要做判断
(window.html2canvas || html2canvas)(shareContent, opts)
              .then(canvas => {
                let url = canvas.toDataURL("image/png");
                console.log(url)
              })
              .catch(err => {
                // do sth
              });

About

解决html2Canvas在IOS13.4中失效问题

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published