【发布时间】:2012-03-05 12:51:19
【问题描述】:
假设我有一个链接:
<a href='http://example.com/file.zip' id='dl'>Download</a>
当有人点击它时,我想做一些事情,例如:
$("#dl").live("click", function(e){
e.preventDefault();
$("#dlbox").fadeOut(500);
});
在我 e.preventDefault 之后有没有办法继续执行默认设置?像
$("#dl").live("click", function(e){
e.preventDefault();
$("#dlbox").fadeOut(500);
e.doDefault();
});
所以它会正常运行事件?
【问题讨论】:
-
我昨天问过这个,也许你想检查一下stackoverflow.com/questions/9556107/…
标签: javascript jquery javascript-events