Javascript 如何在raphaeljs创建的节点中插入文本?
如何在raphaeljs创建的节点中插入文本? 我想使用onClick调用函数u insert或edit节点上的文本。 但我不知道怎么做。 请帮帮我 图像:使用此 它使用插入文本的示例Javascript 如何在raphaeljs创建的节点中插入文本?,javascript,raphael,Javascript,Raphael,如何在raphaeljs创建的节点中插入文本? 我想使用onClick调用函数u insert或edit节点上的文本。 但我不知道怎么做。 请帮帮我 图像:使用此 它使用插入文本的示例 connections = [], shapes = [ r.ellipse(190, 100, 30, 20), r.rect(290, 80, 60, 40, 10), r.rect(290, 180, 60, 40, 2),
connections = [],
shapes = [ r.ellipse(190, 100, 30, 20),
r.rect(290, 80, 60, 40, 10),
r.rect(290, 180, 60, 40, 2),
r.ellipse(450, 100, 20, 20)
],
texts = [ r.text(190, 100, "One"),
r.text(320, 100, "Two"),
r.text(320, 200, "Three"),
r.text(450, 100, "Four")
];
这正是你需要的。你试过什么了吗?