Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从 svgCanvas 中删除所有元素?
我试过:
svgCanvas.clearSvgContentElement() svgCanvas.clearSelection();
没有成功。(如果可能的话,避免闪烁效果)
你应该使用svgCanvas.clear()
svgCanvas.clear()