I'm trying to dynamically add SVG elements to a page but when I change the data attribute of the HTML object element a c,javascript,svg,firefox"/>

首页 > 解决方案 > 为什么更新 HTML tag's data attribute cause the error "TypeError: document.body is null"

I'm trying to dynamically add SVG elements to a page but when I change the data attribute of the HTML object element a c