【发布时间】:2015-04-22 17:28:53
【问题描述】:
我有这个代码:
$('a[href*=#]').click(function() {
$('html, body').animate({
scrollTop: $($.attr(this, 'href')).offset().top
}, 500);
return false;
});
但是点击链接后我需要 600ms 延迟,以便我的页面有机会执行我设置为 500ms 的其他操作,提前谢谢您
【问题讨论】:
标签: javascript function href delay