一旦它被清除,我想在我的select2中挂钩一个事件.select2被初始化了allowClear: true.然而事件
allowClear: true
$select.on('select2-removed', function(event) { console.log(event); });
使用清除按钮重置select2时不会触发.
javascript jquery jquery-select2
javascript ×1
jquery ×1
jquery-select2 ×1