bui.cmd Class
执行ui的某个指令
Constructor
bui.cmd
(
Object
-
[uid]
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",{});