我有以下ngSwitch:
<p ng-switch="status"> <span ng-switch-when="wrong|incorrect"> Wrong </span> <span ng-switch-default> Correct </span> </p>
对于角1.5.9,
你可以通过添加ng-switch-when-separator =“|”到ng-when节点。
@L_403_0@
<span ng-switch-when="wrong|incorrect" ng-switch-when-separator="|">
见这里的讨论https://github.com/angular/angular.js/issues/3410注意,根据我的经验,它不工作与数字…还?