获取get的请求内容 /** * Created by Administrator on 2016/8/5. */ var http = require("http"); var url = require("url"); var util = require("util"); function start(req, res){ res.writeHead("200", {"Content-type": &…
use Mojolicious::Lite; use JSON qw/encode_json decode_json/; use Encode; no strict; use JSON; # /foo?user=sri get '/admin/api/menu' => sub { my $c = shift; $c->render(text => "welcome wx3" ); }; app->start; 访问: http://120.55.1xx.6:30…
主要精髓在于 第一点:不要initialize a new AFHTTPSessionManager object everytime 一定要把manager用成全局的 第二点:把请求返回的task对象丢进数组,下次触发的时候把遍历数组,把之前的所有任务[task cancel] - (void)viewDidLoad { [super viewDidLoad]; /// create the AFHTTPSessionManager object, we're gonna use it in…