参数e没有赋值为什么会直接代表事件,这段代码怎么理解
eventUtil.addHandler(go,'click',function (e) {
e=eventUtil.getevent(e);
alert(eventUtil.getElement(e));
eventUtil.preventDefault(e);
eventUtil.stopPropagation(e);
})
eventUtil.addHandler(go,'click',function (e) {
e=eventUtil.getevent(e);
alert(eventUtil.getElement(e));
eventUtil.preventDefault(e);
eventUtil.stopPropagation(e);
})
2016-05-06
举报