html中进行函数绑定时 如何传递参数
如题:
javascript函数mobileCheck1(obj1,obj2)
html代码为:
<tr>
<td class="tdStyleR">
<input id="mobileid" type="text"
onblur="mobileCheck1(this,document.form.spaninfomobile)"/>
<span id="spaninfomobile"></span>
</td>
</tr>
<tr>
<td class="tdStyleR">
<input id="mobileid" type="text"
onblur="mobileCheck1(this,document.getElementById('spaninfomobile'))"/>
<span id="spaninfomobile"></span>
</td>
</tr>
function mobileCheck1(obj)
{
var spanObj = document.getElementById('spaninfomobile');
...
}