JavaScript and SVG: Error on createElement()

后端 未结 1 1675
我寻月下人不归
我寻月下人不归 2021-01-21 16:27

So what I have is an SVG-Document with no HTML what-so-ever and in the ...-section I have my JavaScript. In it, there is a function to crea

相关标签:
1条回答
  • 2021-01-21 17:28

    You need to use document.createElementNS('http://www.w3.org/2000/svg', 'path') to create a path element in the SVG namespace.

    0 讨论(0)
提交回复
热议问题