微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

jQuery .focus(1)做什么?与.focus()有什么不同?

我在jQuery UI代码库中看到了.focus(1),我无法弄清楚这个参数是什么.

与.focus()有什么不同?
我在jQuery网站上阅读了.focus文档,但仍然无法理解.

谢谢.

解决方法

.focus(1)它只是意味着你想要1毫秒的延迟.

http://api.jqueryui.com/focus/

API:jqueryui

.focus( delay [,callback ] )

This plugin extends jQuery’s built-in .focus() method. If jQuery UI is not loaded,calling the .focus() method may not fail directly,as the method still exists. However,the expected behavior will not occur.

原文地址:https://www.jb51.cc/jquery/176176.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐