angular(过滤查询)
来源:互联网 发布:nginx 配置两个server 编辑:程序博客网 时间:2024/05/16 17:01
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script type="text/javascript" src="js/angular.min.js"></script> </head> <body ng-app="myapp" ng-controller="mycrl"> <div class="div1"> <input type="text" ng-model="na" placeholder="用户名" ng-change="cha()" /> </div> <table class="ta" border="1px" cellpadding="0px" cellspacing="0px"> <tr> <th>姓名</th> </tr> <tr align="center" ng-repeat="u in users|filter:cx"> <td>{{u.name}}</td> </tr> </table> <script type="text/javascript"> var mo = angular.module("myapp", []); mo.controller("mycrl", function($scope) { //准备原始的数组 $scope.users = [{ "name": "张三", "flag": false },{ "name": "温婉", "flag": false },{ "name": "胡桃", "flag": false }]; //查询 $scope.cx = ""; //查询过滤赋值 $scope.cha = function() { if ($scope.na != "" && $scope.na != null) {} $scope.cx = { "name": $scope.na }; } }); </script> </body></html>
阅读全文
0 0
- angular(过滤查询)
- angular模糊查询和过滤修改
- angular查询(回车)
- angular表格排序(查询)
- angular查询
- angular html不过滤
- angular js 过滤关键字
- HTML angular过滤关键字
- angular表情过滤
- Angular过滤敏感词
- Angular学习(十四)——模块依赖/格式过滤
- angular(查询、删除、添加、排序)案例
- angular中的过滤使用浅析
- angular敏感文字自动过滤
- angular js 敏感字过滤
- iOS的查询、过滤(NSPredicate)
- iOS的查询、过滤(NSPredicate)
- iOS的查询、过滤(NSPredicate)
- 读书笔记——《深入理解Java虚拟机》系列之垃圾收集器与GC日志分析
- Builder 模式
- jquery wysiwyg.js实现富文本编辑框,可复制图片及文字
- windows下使用Linux命令
- 开发就是个玩代码的过程
- angular(过滤查询)
- NIFI 系统属性 System Properties之Provenance Repository来源库
- 网络安全——数据的加密与签名,RSA介绍
- Hibernate 实体类注解
- 2017深度学习NLP进展与趋势
- 7-34 抓老鼠啊~亏了还是赚了?(20 分)
- 工信部印发AI三年行动计划,4大任务,5项措施保障AI发展
- rk3399开发板固件升级
- 在阿里云CentOS 7系统里安装wdCP v3 控制面板