Is there a way to make SVG className backward compatible?

前端 未结 0 1388
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-21 10:45

Many old libraries rely on className to identify their context.

So a click handler can look like this:

function click(event)
{
   if (event.target.clas         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题