Appending path child within SVG Using Javascript

前端 未结 2 1342
粉色の甜心
粉色の甜心 2020-12-24 06:29

Good Day,

I am having incredible difficulty in creating a path and displaying it using \"appendChild\" within an SVG element.

I have to be missing somethin

2条回答
  •  长情又很酷
    2020-12-24 07:22

    The namespace needs to be "http://www.w3.org/2000/svg", not "SVG" in the createElementNS call.

提交回复
热议问题