没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
1,email验证
<span ng-show="form.email.$error.email">非法的邮箱</span>
2,$.extend($scope, param1, param2,...);
它的含义是将param1, param2,...合并到$scope中,返回值为合并后的$scope
3,表格中使用cellTemplate
cellTemplate: '<div class="ui-grid-cell-contents" ng-bind="row.entity.submitTime | date"></div>' }, // 申请日期
ng-grid中加入其它控件,比如select的方法是在cellTemplate或editableCellTemplate中加入html元素。
4,ng-grid:ui-grid.js,ui-grid.css
4.1:ng-grid是基于AngularJS和JQuery的富表格控件,由AngularUI Team领衔开发
5,XHR:XMLHttpRequest对象
6,angular引用对象被传值后,传递出去的对象容易失去上级节点:
current.entity对象链中的entity单独作对象传递出去后,不再保有current链。
7,$q.defer:异步的方式变同步――Promise规范
deferABC.resolve(xxx).then(funcSuccess(){},funcError(){},funcNotify(){});
q服务是AngularJS中自己封装实现的一种Promise实现,相对与Kris Kwal's Q要轻量级的多
7.1:deferred.resolve――success
7.2:deferred.reject ――error
8,injector注入// 使用注入器加载应用
var injector = angular.injector(['ng', 'myApp']);
8.1:注入器(injector)将用于创建此应用程序的依赖注入(dependency injection);注入器将会创建根作用域作为我们应用模型的范围;
8.2:注入器也可以作为注入默认参数使用,比如:
controller.$inject = [ "$scope", "$rootScope", "$http",...]
9,方法初始化时就调用的用法:
$.extend($scope, {
...
query: function() {
<span ng-show="form.email.$error.email">非法的邮箱</span>
2,$.extend($scope, param1, param2,...);
它的含义是将param1, param2,...合并到$scope中,返回值为合并后的$scope
3,表格中使用cellTemplate
cellTemplate: '<div class="ui-grid-cell-contents" ng-bind="row.entity.submitTime | date"></div>' }, // 申请日期
ng-grid中加入其它控件,比如select的方法是在cellTemplate或editableCellTemplate中加入html元素。
4,ng-grid:ui-grid.js,ui-grid.css
4.1:ng-grid是基于AngularJS和JQuery的富表格控件,由AngularUI Team领衔开发
5,XHR:XMLHttpRequest对象
6,angular引用对象被传值后,传递出去的对象容易失去上级节点:
current.entity对象链中的entity单独作对象传递出去后,不再保有current链。
7,$q.defer:异步的方式变同步――Promise规范
deferABC.resolve(xxx).then(funcSuccess(){},funcError(){},funcNotify(){});
q服务是AngularJS中自己封装实现的一种Promise实现,相对与Kris Kwal's Q要轻量级的多
7.1:deferred.resolve――success
7.2:deferred.reject ――error
8,injector注入// 使用注入器加载应用
var injector = angular.injector(['ng', 'myApp']);
8.1:注入器(injector)将用于创建此应用程序的依赖注入(dependency injection);注入器将会创建根作用域作为我们应用模型的范围;
8.2:注入器也可以作为注入默认参数使用,比如:
controller.$inject = [ "$scope", "$rootScope", "$http",...]
9,方法初始化时就调用的用法:
$.extend($scope, {
...
query: function() {
资源评论
伯爵大人
- 粉丝: 11
- 资源: 34
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功