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.
在像这样实例化 Raphael 文本之后
var t = paper.text(50, 50, "Raphaël\nkicks\nbutt!");
我该如何着手修改该文本?
t.text = "test";对我不起作用。
t.text = "test";
您必须使用.attr()docs方法来更改现有文本元素的文本
.attr()
像这样
t.attr('text','new text here');