我有这样的结构:
<a href="some.jpg"><img src="other.jpg" onclick="someAction(this);"></a>
<a href="some2.jpg"><img src="other2.jpg" onclick="someAction(this);"></a>
<a href="some3.jpg"><img src="other3.jpg" onclick="someAction(this);"></a>
当我尝试将 alert(this) 添加到 onclick 时,我得到 [object HTMLImageElement]
我需要调用这个 someAction 以获得来自页面其他部分的精确图像
这个怎么做?