我可以像这样用jQuery更改Raphael文本的CSS属性:
var text = paper.text(10,10,'abc');
$(text.node).css('font-style','italic');
我该如何只使用JavaScript而没有jQuery来做到这一点?
在javascript中,使用element.style.property = 'new-style';
编辑元素的样式。
var text = paper.text(10,10,'abc');
text.style.font-style = 'italic';