【发布时间】:2012-06-12 07:32:26
【问题描述】:
代码:
$('#myLink').click(function (e) {
e.preventDefault();
...
if (someCondition) {
... code ...
} else {
... execute the link
}
});
我想,如果someCondition 为假,则执行链接的原始href(因此,转到该链接,更改页面)。这可能吗?
【问题讨论】:
标签: jquery