原文:Cannot assign to read only property 'className' of object '# '

vue 導出 pdf 引用 html canvas 報錯 Cannot assign to read only property className of object lt SVGSVGElement gt 修改 package.json 中引用的 html canvas 版本為 : . . rc. ,不需添加 或 ...

2020-04-28 15:20 1 643 推薦指數:

查看詳情

vue項目中引入 html2canvas ,控制台報錯 Cannot assign to read only property 'className' of object '#< SVGSVGElement >'

本人遇到該錯誤,找了好久原因,終於找到了原因, 一開始以為是后台管理系統的模板問題有沖突導致的,於是尋找最初模板使用同樣方法引入,竟然沒有報錯,啊!這個時候就很神傷了。 仔細研究報錯內容<SVGSVGElement>,難道和我使用的SVG矢量圖有關系?於是嘗試 ...

Thu May 07 17:36:00 CST 2020 0 1342
 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM