动态绑定
自定义结构绑定,select分组
动态绑定示例:
html:
js:
var uiSelect = bui.select({
trigger:"#select",
title: "请选择区域",
data: [{
"name":"广东",
"value":"11"
},{"name":"广西",
"value":"22"
}]
})
静态绑定示例:
html:
js:
var uiSelect2 = bui.select({
id:"#select-dialog",
trigger:"#select2",
type:"checkbox",
callback: function (argument) {
uiSelect2.hide();
}
});