目录
当前位置: 首页 > 文档资料 > Snap.svg 英文文档 >

Element.node()

优质
小牛编辑
118浏览
2023-12-01

Gives you a reference to the DOM object, so you can assign event handlers or just mess around.

Usage

// draw a circle at coordinate 10,10 with radius of 10
var c = paper.circle(10, 10, 10);
c.node.onclick = function () {
c.attr("fill", "red");
};