$("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动效后,再跳转。嗯就是这个意思。。额

相关文章:

  • 2021-04-27
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2022-01-14
  • 2021-08-28
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
相关资源
相似解决方案