Show:

bui.cmd Class

Module: Method

Available since 1.6.6

执行ui的某个指令

Constructor

bui.cmd

(
  • [uid]
)
Object

Defined in src/scripts/method/bui.method.js:182

Available since 1.6.6

Parameters:

  • [uid] String optional

    初始化控件的时候,可以执行某个命令

Returns:

Object:

} [返回实例 ]

Example:

  // 例子: 
                                           // 实例初始化
                                           var uiAccordion = bui.accordion({uid:"uiAccordion"});
                                            
                                            // 1.获取到实例
                                      var accordion = bui.cmd("uiAccordion");
                                            
                                            // 2.执行实例某个方法
                                      bui.cmd("uiAccordion:show");
                                    
                                            // 3.执行实例某个方法并传参数
                                      bui.cmd("uiAccordion:show",{});
                                    

Item Index