gpt4 book ai didi

angularjs - 是否可以在一个输入字段中使用两个 ng-changes

转载 作者:行者123 更新时间:2023-12-02 06:14:17 25 4
gpt4 key购买 nike

这是代码,我正在尝试使用两个 ngChanges,它是正确的还是任何其他方式。

<select  ng-change="updatedate()"  ng-change="checkDate()" class="form-control" name="anniversaryMonth" ng-model="anniversaryMonth" month-options>
</select>

谢谢,贾米尔

最佳答案

像这样在单个 ng-change 中调用这两个方法。

<select  ng-change="updatedate(); checkDate()" class="form-control" name="anniversaryMonth" ng-model="anniversaryMonth" month-options>  </select>

关于angularjs - 是否可以在一个输入字段中使用两个 ng-changes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43756515/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com