angular1 中如何根据输入的menuFilter值,来筛选menu.name和menuFilter值相等的项 <input type="text" ng-model="menuFilter" placeholder="搜索"/> <div ng-repeat="menu in menuList |filter:menuFilter track by $index"> <span>{{menu.name}}</span> <span>{{menu.id}}</span> </div>
添加回答
举报
0/150
提交
取消