前端-JQuery.delay()方法在css()上使用

$("div").delay(100).queue(function(next){//queue()方法显示或操作在元素上执行的函数队列。
      $(this).css("position","fixed");
      next();//这里必须加next,否则queue只会执行一次
     })


猜你喜欢

转载自blog.csdn.net/weixin_41395648/article/details/84330167