<script>
function check(re,domain_id){
document.getElementById(re).innerHTML='当前选中....';
}
</script>
<TD width="300">aaaaaa<input type="button" value="查看详细" onClick="check(re1,2);" />
<span id="re1" style="color:blue; font-size:14px; text-align:center;"></span>
</TD>
<TD width="300">aaaaaa<input type="button" value="查看详细" onClick="check(re2,2);" />
<span id="re2" style="color:blue; font-size:14px; text-align:center;"></span>
</TD>
以上javascript提示:Error:'document.getElementById(...)' 为空或不是对象/请问该怎么处理re参数的值??? 使得getElementById(re)可以使用?