AngularJS 大文件上传 angularQFileUpload
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/icattlecoder/angularQFileUpload
- 软件文档: https://github.com/icattlecoder/angularQFileUpload
软件介绍
angularQFileUpload 是一个 AngularJS 扩展,实现了通过七牛云储存上传大文件的服务,支持恢复、进度等功能。
示例代码:
$scope.selectFiles = [];
var start = function (index) {
$scope.selectFiles[index].progress = {
p: 0
};
$scope.selectFiles[index].upload = $qupload.upload({
key: '<your qiniu file key>',
file: $scope.selectFiles[index].file,
token: '<your qiniu UpToken>'
});
$scope.selectFiles[index].upload.then(function (response) {
// upload success
$log.info(response);
}, function (response) {
// upload failure
$log.info(response);
}, function (evt) {
// progress
$scope.selectFiles[index].progress.p = Math.floor(100 * evt.loaded / evt.totalSize);
});
};
$scope.abort = function (index) {
$scope.selectFiles[index].upload.abort();
$scope.selectFiles.splice(index, 1);
};
$scope.onFileSelect = function ($files) {
var offsetx = $scope.selectFiles.length;
for (var i = 0; i < $files.length; i++) {
$scope.selectFiles[i + offsetx] = {
file: $files[i]
};
start(i + offsetx);
}
};
全景探秘游戏设计艺术
Jesse Schell / 吕阳、蒋韬、唐文 / 电子工业出版社 / 2010-6 / 69.00元
撬开你脑子里的那些困惑,让你重新认识游戏设计的真谛,人人都可以成为成功的游戏设计者!从更多的角度去审视你的游戏,从不完美的想法中跳脱出来,从枯燥的游戏设计理论中发现理论也可以这样好玩。本书主要内容包括:游戏的体验、构成游戏的元素、元素支撑的主题、游戏的改进、游戏机制、游戏中的角色、游戏设计团队、如何开发好的游戏、如何推销游戏、设计者的责任等。 本书适合任何游戏设计平台的游戏设计从业人员或即将......一起来看看 《全景探秘游戏设计艺术》 这本书的介绍吧!
