84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
select binding event
111 var vm = avalon.define({ $id: "checkDeviceContext", deviceList: [], selectChange: function () { alert(1) } });
If you change change to click, there will be no problem. What is the reason?
Following the voice in heart.
Because the triggering conditions ofms-on-changeare similar to theonchangetriggering conditions ofselect, both are triggered when the value changes.
ms-on-change
onchange
select
In your example, there is only oneoptionunderselect, so even if you click, it will not change the value ofselect, soms-on-changewill not be triggered.
option
Because the triggering conditions of
ms-on-change
are similar to theonchange
triggering conditions ofselect
, both are triggered when the value changes.In your example, there is only one
option
underselect
, so even if you click, it will not change the value ofselect
, soms-on-change
will not be triggered.