WTRequestCenter
- 授权协议: Apache
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/swtlovewtt/WTRequestCenter
软件介绍
WTRequestCenter 是一个网络请求类库库,所有的请求都是缓存的。
GET 请求
[WTRequestCenter getWithURL:url
parameters:parameters
completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
id obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&jsonError];
NSLog(@"result:%@",obj);
}
POST 请求
[WTRequestCenter postWithURL:url
parameters:parameters
completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
id obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&jsonError];
NSLog(@"result:%@",obj);
}
缓存图片
NSURL *url = [NSURL URLWithString:@"http://www.xxx.com/eqdsa.jpg"];
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectZero];
[WTRequestCenter getImageWithURL:url imageComplectionHandler:^(UIImage *image) {
imageView.image = image;
}];
取消所有请求
[WTRequestCenter cancelAllRequest];
JAVASCRIPT语言精髓与编程实践
周爱民 / 电子工业出版社 / 2008-3 / 68.00元
《JAVASCRIPT语言精髓与编程实践》讲述了JavaScript的语言实现与扩展,主要包括以下三个方面的内容:(1)动态、函数式语言,以及其它语言特性在JavaScript的表现与应用;(2)如何用动态函数式语言的特性来扩展JavaScript的语言特性与框架;(3)如何将JavaScript引擎整合到其它高级语言的开发过程中。一起来看看 《JAVASCRIPT语言精髓与编程实践》 这本书的介绍吧!
