-
attachEvt:function(target, eventName, handler, argsObject)
{
var eventHandler = handler;
if(argsObject)
{
eventHander = function(e)
{
handler.call(argsObject, e);
}
}
if(window.attachEvent)//IE
target.attachEvent("on" + eventName, eventHander );
else//FF
target.addEventListener(eventName, eventHander, false);
} - attachEvt(img,"click",this.fun,param);
js 事件传递参数
Right! is "Fuck GIS",but don't think too much; It means reach a high during playing GIS. Come on!