请教一下,我通过getAttribute("style")获取的style是字符串"color:red;width:20px...",有啥简单的方法可以把它变成{color:'red',width:20...}这种在react里使用的CSSProperties类型的数据吗?
8