angular-data
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: http://angular-data.pseudobry.com/
- 软件文档: http://angular-data.pseudobry.com/documentation/guide/angular-data/overview
软件介绍
angular-data 是 AngularJS 的一个扩展,实现了数据存储和缓存的功能。
示例代码:
var app = angular.module('myApp', ['angular-data.DS']);
app.factory('User', function (DS) {
// Simplest resource definition
return DS.defineResource('user');
});
app.controller('friendsCtrl', function ($scope, $routeParams, User) {
// it's up to your server to know how to interpret this query
// or you can teach angular-data how to understand your servers' query language
var query = {
where: {
friendIds: {
in: $routeParams.id
}
}
};
User.find($routeParams.id);
User.findAll(query);
// My goodness this was easy
User.bindOne($scope, 'me', $routeParams.id);
User.bindAll($scope, 'friends', query);
// Long form
$scope.$watch(function () {
return User.lastModified($routeParams.id);
}, function () {
$scope.me = User.get($routeParams.id);
});
$scope.$watch(function () {
// Changes when anything in the User collection is modified
return User.lastModified();
}, function () {
$scope.friends = User.filter(query);
});
});
算法与数据结构(第二版)
傅清祥、王晓东 / 电子工业出版社 / 2001-8-1 / 34.00
本书是《计算机学科教学计划1993》的配套教材之一。它覆盖了《计算机学科教学计划1993》中开列的关于算法与数据结构主科目的所有知识单元。其主要内容有:算法与数据结构的概念、抽象数据类型(ADT)、基于序列的ADT(如表,栈,队列和串等)。反映层次关系的ADT(如树,堆和各种平衡树等)、关于集合的ADT(如字典,优先队列和共查集等)、算法设计的策略与技巧、排序与选择算法、图的算法、问题的计算复杂性一起来看看 《算法与数据结构(第二版)》 这本书的介绍吧!
