如何即时更改 jQuery mouseoverIntent 插件实例设置?
我正在使用 jQuery hideIntent 插件,如下所示:
$('#box').hoverIntent({ over:function_a, out:function_b, interval:0 });
但是我想更改设置 -在 function_a
中飞行此实例,将间隔设置为 500。这可以实现吗?如何实现?
非常感谢您的帮助。
I am using jQuery hoverIntent plugin like this:
$('#box').hoverIntent({ over:function_a, out:function_b, interval:0 });
However I want to change setting on-the-fly of this instance within function_a
to set interval to 500. Can this be achieved and how ?
Thank you very much for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
hrefIntent 插件向分配给它的每个 DOM 元素添加两个自定义属性
,例如:
变为
现在:
所以你可以像这样直接改变#box的内部状态:
The hoverIntent plugin add two custom attributes to every DOM element it's assigned to
For example:
<div id="box">
became<div id="box" hoverIntent_t="" hoverIntent_s="">
Now:
So you can directly change the internal state of #box like this: