-1
我有这样循环多维数组中的角JS
dataval = [{"id":"1","emp_id":"27","amount":"555544"},{"id":"2","emp_id":"28","amount":"122"}]
我需要显示一个div只有emp_id
不dataval
存在的数组。 (含义emp_id
可以是29或30或除dataval
之外的任何东西)。
我的HTML是
<div ng-show="editId===p.id" ng-if="editId===p.id ng-repeat="c in datavalue">
I HV使用的过滤器,grep的,方法 – athira
试试这个:HTTP ://plnkr.co/edit/hpMS02Oaxsb5cyfAuncI?p = preview – Rayon
我只有在当前emp_id不在dataval中时才需要显示div。 – athira