gpt4 book ai didi

javascript - Jquery pulsate 完成后可以做一些事情吗?

转载 作者:行者123 更新时间:2023-11-28 06:12:13 26 4
gpt4 key购买 nike

我正在使用 onfocusout 函数检查表单中输入的值是否已存在于数据库中。如果存在,我将输入脉冲 5 次,如下所示;

  cell.pulsate({ //cell is my selector 
color: "#bf1c56",
repeat: 5,
});

但问题是我没有获取脉动完成。我想在脉冲工作 5 次后将 css 添加到输入中。我找不到 pulsate 的完整或完成选项。有我想要的用法吗?

最佳答案

您应该使用toggle方法

cell.toggle( "pulsate", {
color: "#bf1c56",
repeat: 5
}, function() {
alert("I will be called when pulsate is finished");
});

关于javascript - Jquery pulsate 完成后可以做一些事情吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36278006/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com