2011-04-21
- 1 在获取标签自定义属性时,二者存在差异,
实例:
<input id='xxxId' tag='keyvalue'></input>
解决方案:
document.getElementById('xxxId').attributes['tag'].nodeValue;
- 2 在处理时间绑定时,二者存在差异
var obj=$("xxxxId");
if (obj)
{ obj.onclick= function(event)
{
handlerfunction(event,p1, p2.....);
}
}
if (obj)
{ obj.onclick= function(event)
{
handlerfunction(event,p1, p2.....);
}
}