How to modify raphael text?

后端 未结 1 611
春和景丽
春和景丽 2021-02-18 15:53

After instantiating Raphael text like so

var t = paper.text(50, 50, \"Raphaël\\nkicks\\nbutt!\");

how do I go about then modifying that text?

相关标签:
1条回答
  • You must use the .attr()docs method to change the text of an existing text element

    like this

    t.attr('text','new text here');
    
    0 讨论(0)
提交回复
热议问题