如何查找以下代码中选择框上的值更改时触发哪个函数或事件
<p>${Agenda Items Widget}</p>
<div id="pending-agenda-item-widget" class="panel panel-default" role="region" tabindex="0" aria-label="${Agenda Items Widget}" accessibility="{{meeting.accessible}}">
<div class="panel-heading heading widget-heading heading-border" ng-class="{'heading-inactive': meeting.viewingCurrent()}">
<div class="flex">
<label for="cab-pending-agenda-filter" class="sr-only">${Agenda list filter}</label>
<select id="cab-pending-agenda-filter" class="sn-select-basic expand" ng-model="selectedItem" ng-init="selectedItem = CAB.PENDING" ng-disabled="page.loading" tabindex="0">
<option value="{{::CAB.PENDING}}">{{::c.data.i18n.filter[CAB.PENDING]}}</option>
<option value="{{::CAB.ALL}}">{{::c.data.i18n.filter[CAB.ALL]}}</option>
<option value="{{::CAB.MINE}}">{{::c.data.i18n.filter[CAB.MINE]}}</option>
<option value="{{::CAB.APPROVED}}">{{::c.data.i18n.filter[CAB.APPROVED]}}</option>
<option value="{{::CAB.COMPLETE}}">{{::c.data.i18n.filter[CAB.COMPLETE]}}</option>
</select>
我想知道哪个功能在选择框“驾驶室待办事项”中的价值变化时会触发,然后将值添加到同一函数
<p>${Agenda Items Widget}</p>
<div id="pending-agenda-item-widget" class="panel panel-default" role="region" tabindex="0" aria-label="${Agenda Items Widget}" accessibility="{{meeting.accessible}}">
<div class="panel-heading heading widget-heading heading-border" ng-class="{'heading-inactive': meeting.viewingCurrent()}">
<div class="flex">
<label for="cab-pending-agenda-filter" class="sr-only">${Agenda list filter}</label>
<select id="cab-pending-agenda-filter" class="sn-select-basic expand" ng-model="selectedItem" ng-init="selectedItem = CAB.PENDING" ng-disabled="page.loading" tabindex="0">
<option value="{{::CAB.PENDING}}">{{::c.data.i18n.filter[CAB.PENDING]}}</option>
<option value="{{::CAB.ALL}}">{{::c.data.i18n.filter[CAB.ALL]}}</option>
<option value="{{::CAB.MINE}}">{{::c.data.i18n.filter[CAB.MINE]}}</option>
<option value="{{::CAB.APPROVED}}">{{::c.data.i18n.filter[CAB.APPROVED]}}</option>
<option value="{{::CAB.COMPLETE}}">{{::c.data.i18n.filter[CAB.COMPLETE]}}</option>
</select>
i want to know which function is getting triggered on change of value on the select box "cab-pending-agenda-filter" and pass adding value to the same function
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需将Onchange指令添加到您的选择元素:
然后在包含选择框的控制器的$范围中定义分配的方法:
Just add an onchange directive to your select element:
then define the assigned method in the $scope of the controller that contains the select box:
或者,如果您只想查看是否有任何事件分配给该元素,您可以:
如果先前已分配给元素 onchange 事件,则这将输出任何函数的内容。
Alternatively, if you just want to see if any event is assigned to the element you can:
This will output the contents of any function if assigned previously to the element onchange event.