$vmSelect.select2({
data: source,
templateResult: formatState,
multiple: true,
theme: "bootstrap",
closeOnSelect: false
}).on('select2:select', function (evt) {
if (!evt) {
} else {
vm_name = evt.params.data.id;
getVmInfo(url, vir_uuid, vm_name);
}
});
on()事件中的'select2:select'是什么意思呀,请大神赐教
相关分类