假设我在svg中画了很多个矩形,我想通过鼠标mouseover事件获得某个矩形对象,然后对这个矩形进行操作,应该如何实现
</rect> <rect x="65" y="15" width="40" height="40" fill="red" onmouseover="alert(2);"> </rect> </svg>