💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# Methods 虽然jQuery UI主要包含的是[widgets](/category/widgets/), [interactions](/category/interactions/), h和 [effects](/category/effects/), 也添加了几个简单方便的方法。 Also in: [UI Core](http://www.css88.com/jquery-ui-api/category/ui-core/ "View all posts in UI Core") ## .disableSelection() 禁用选择匹配的元素集合内的文本内容。 Also in: [Effects](http://www.css88.com/jquery-ui-api/category/effects/ "View all posts in Effects") | [Effects Core](http://www.css88.com/jquery-ui-api/category/effects-core/ "View all posts in Effects Core") ## .effect() 对一个元素应用动画特效。 Also in: [UI Core](http://www.css88.com/jquery-ui-api/category/ui-core/ "View all posts in UI Core") ## .enableSelection() 启用选择匹配的元素集合内的文本内容。 Also in: [Method Overrides](http://www.css88.com/jquery-ui-api/category/overrides/ "View all posts in Method Overrides") | [UI Core](http://www.css88.com/jquery-ui-api/category/ui-core/ "View all posts in UI Core") ## .focus() 异步聚焦到一个元素。 Also in: [Effects](http://www.css88.com/jquery-ui-api/category/effects/ "View all posts in Effects") | [Effects Core](http://www.css88.com/jquery-ui-api/category/effects-core/ "View all posts in Effects Core") | [Method Overrides](http://www.css88.com/jquery-ui-api/category/overrides/ "View all posts in Method Overrides") ## .hide() 使用自定义效果来隐藏匹配的元素。 Also in: [Method Overrides](http://www.css88.com/jquery-ui-api/category/overrides/ "View all posts in Method Overrides") | [Utilities](http://www.css88.com/jquery-ui-api/category/utilities/ "View all posts in Utilities") ## .position() 相对另一个元素定位一个元素。 Also in: [UI Core](http://www.css88.com/jquery-ui-api/category/ui-core/ "View all posts in UI Core") ## .removeUniqueId() 为匹配的元素集合移除由 .uniqueId() 设置的 Id。 Also in: [UI Core](http://www.css88.com/jquery-ui-api/category/ui-core/ "View all posts in UI Core") ## .scrollParent() 获取最近的可滚动的祖先。 Also in: [Effects](http://www.css88.com/jquery-ui-api/category/effects/ "View all posts in Effects") | [Effects Core](http://www.css88.com/jquery-ui-api/category/effects-core/ "View all posts in Effects Core") | [Method Overrides](http://www.css88.com/jquery-ui-api/category/overrides/ "View all posts in Method Overrides") ## .show() 使用自定义效果来显示匹配的元素。 Also in: [Effects](http://www.css88.com/jquery-ui-api/category/effects/ "View all posts in Effects") | [Effects Core](http://www.css88.com/jquery-ui-api/category/effects-core/ "View all posts in Effects Core") | [Method Overrides](http://www.css88.com/jquery-ui-api/category/overrides/ "View all posts in Method Overrides") ## .toggle() 使用自定义效果来显示或隐藏匹配的元素。 Also in: [UI Core](http://www.css88.com/jquery-ui-api/category/ui-core/ "View all posts in UI Core") ## .uniqueId() 为匹配的元素集合生成并申请一个唯一的 Id。 Also in: [UI Core](http://www.css88.com/jquery-ui-api/category/ui-core/ "View all posts in UI Core") ## .zIndex() 为元素获取 z-index。