0
我已经下面的HTML:用dojo从“href”获取文本?
<table id="mytable">
<thead>
</thead>
<tbody>
<tr>
<td><a href="#" onclick="doSometThingCrazy(); return false;">test</a></td>
</tr>
</tbody>
</table>
现在我想用这个道场表内的所有链接。到目前为止这么好:
dojo.query("#mytable a").forEach(
function(item){
dojo.connect(item, 'onmouseover', function(){
console.log(item);
console.log('x');
});
}
);
现在我想获取href(测试)的文本,并在其他表中查找它。无论如何要访问这个值吗?