<div rownumber="0" messageid="112" class="post" style="position: relative; top: 0px;">
<div class="post_body">hey hey hey</div>
<div class="post_info" style="top: 0px;">
<ul>
<li class="vote"><a href="#">vote up</a></li>
<li class="flag"><a href="#">flag</a></li>
</ul>
</div>
</div>
当我单击“投票”或“标记”href
链接时,我希望能够messageId
从主包含div
元素中获取。我该怎么做?