Is there an easy way to clear an SVG element's contents?

前端 未结 9 1231
误落风尘
误落风尘 2020-12-29 01:14

In HTML, I can clear a

element with this command:

div.innerHTML = \"\";

Is there an equivalent if I have an

9条回答
  •  醉酒成梦
    2020-12-29 01:46

    use this? http://keith-wood.name/svg.html

    there's also raphael: jQuery SVG vs. Raphael

    I'd be tempted to trawl through and see who they're doing their .destroy() methods.

提交回复
热议问题