我在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.