解决方法@H_404_6@
jsBin demo
$('a').click(function (e) {
e.preventDefault(); // prevent default anchor behavior
var goTo = this.getAttribute("href"); // store anchor href
// do something while timeOut ticks ...
setTimeout(function(){
window.location = goTo;
},3000);
});@H_404_9@
$('a').click(function (e) { e.preventDefault(); // prevent default anchor behavior var goTo = this.getAttribute("href"); // store anchor href // do something while timeOut ticks ... setTimeout(function(){ window.location = goTo; },3000); });@H_404_9@