📜  jQuery UI 手风琴 refresh() 方法

📅  最后修改于: 2022-05-13 01:55:53.528000             🧑  作者: Mango

jQuery UI 手风琴 refresh() 方法

jQuery UI由 GUI 小部件、视觉效果和使用 HTML、CSS 和 jQuery 实现的主题组成。 jQuery UI 非常适合为网页构建 UI 界面。

jQuery UI Accordion refresh() 方法用于刷新小部件。它用于处理直接在 DOM 中添加或删除的任何标题和面板。它重新计算手风琴面板的高度。它不接受任何参数。

句法:

$( ".selector" ).accordion( "refresh" );

CDN 链接:首先,添加项目所需的 jQuery UI 脚本。

示例:此示例描述了 jQuery UI Accordion refresh() 方法的使用。

HTML



    
    
    
    
    
  
    

  

    

        GeeksforGeeks     

       

jQuery UI Accordion refresh() Method

       
        

HTML

        
            HTML stands for HyperText Markup Language.             It is used to design web pages using a             markup language. HTML is the combination             of Hypertext and Markup language. Hypertext             defines the link between the web pages.         
           

CSS

        
            Cascading Style Sheets, fondly referred             to as CSS, is a simply designed language             intended to simplify the process of making             web pages presentable. CSS allows you to             apply styles to web pages. More importantly,             CSS enables you to do this independent of             the HTML that makes up each web page.         
           

JavaScript

        
            JavaScript is a lightweight, cross-platform,             and interpreted scripting language. It is             well-known for the development of web pages,             many non-browser environments also use it.             JavaScript can be used for Client-side             developments as well as Server-side             developments.         
    
    
          


输出:

参考: https://api.jqueryui.com/accordion/#method-refresh