I get this code from StackOverflow its working good u see example in Jsfiddle and press F12 and see the console.
https://jsfiddle.net/ohari5336/L2r8x9fh/
but when I set this code in my code then it's not work
```https://jsfiddle.net/ohari5336/9Lcy0mnf/```
please, anyone helps me.
我看到您正在向 SVG 元素添加类,根据这篇文章,您不能为此使用 addClass(),而是使用 attr('class', 'class-name')。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.