angularjs之过滤器

前端之家收集整理的这篇文章主要介绍了angularjs之过滤器前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
<!DOCTYPE html> <html> <head> <Meta charset="UTF-8"> <title></title> <script src="js/angular.js"></script> </head> <body> <div ng-app="" ng-init="firends=[ {name:'tome',age:16},{name:'jerry',age:20},{name:'gafiored',age:22} ]"> 输入条件:<input type="text" ng-model="name" /> 输出结果: <ul style="list-style-type: none;"> <li ng-repeat="x in firends|filter:name"> {{x.name+","+x.age}} </li> </ul> </div> </body> </html> 
原文链接:https://www.f2er.com/angularjs/148394.html

猜你在找的Angularjs相关文章