点击按钮后延迟跳转

$("a.delay").click(function(e){
    e.preventDefault();
    var url = $(this).attr("href");
    var delay_time = $(this).attr("delay");
    //$(".subnav .sign").show().addClass(""+ $(this).parent().attr("class") +"")
    setTimeout(function(){
        window.location.href = url
    }, delay_time)
})
<a href="#" class="delay" delay="600">延迟跳转 可增加hover效果</a>

可以利用这个功能,简单的在手机上实现点击按钮,看到hover动效后,再跳转。嗯就是这个意思。。额

原文地址:https://www.cnblogs.com/woodk/p/4617667.html