如何使用更改事件ExtJS重置组合框值

时间:2018-08-20 07:11:15

标签: php extjs

我需要有关重置combobox的帮助,我尝试使用以下代码:

change: function (this, newValue, oldValue) {
    console.log(NewValue)
}

1 个答案:

答案 0 :(得分:0)

您可以按照以下方式进行操作:-

change: function (combo, newValue, oldValue) {
    console.log(NewValue);
    combo.suspendEvents();
    combo.reset();
    combo.resumeEvents();
}