{"action":"created","issue":{"url":"https://api.github.com/repos/weexteam/article/issues/53","repository_url":"https://api.github.com/repos/weexteam/article","labels_url":"https://api.github.com/repos/weexteam/article/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/weexteam/article/issues/53/comments","events_url":"https://api.github.com/repos/weexteam/article/issues/53/events","html_url":"https://github.com/weexteam/article/issues/53","id":167222669,"number":53,"title":"< stream > 模块","user":{"login":"TiaossuP","id":9267217,"avatar_url":"https://avatars.githubusercontent.com/u/9267217?v=3","gravatar_id":"","url":"https://api.github.com/users/TiaossuP","html_url":"https://github.com/TiaossuP","followers_url":"https://api.github.com/users/TiaossuP/followers","following_url":"https://api.github.com/users/TiaossuP/following{/other_user}","gists_url":"https://api.github.com/users/TiaossuP/gists{/gist_id}","starred_url":"https://api.github.com/users/TiaossuP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TiaossuP/subscriptions","organizations_url":"https://api.github.com/users/TiaossuP/orgs","repos_url":"https://api.github.com/users/TiaossuP/repos","events_url":"https://api.github.com/users/TiaossuP/events{/privacy}","received_events_url":"https://api.github.com/users/TiaossuP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-24T08:07:29Z","updated_at":"2016-11-07T09:34:21Z","closed_at":null,"body":"> [原文在这](http://alibaba.github.io/weex/doc/modules/stream.html)\n# 概述\n\n以下为stream相关的API，用于实现网络请求。\n# API\n## fetch(options, callback[,progressCallback])\n### 参数\n- options(object): 请求的一些选项.\n  - method(string): HTTP方法： `GET`或是`POST`.\n  - url(string): 请求的URL.\n  - headers(object): HTTP请求头.\n  - type(string): 请求类型, 'json','text' 或是 'jsonp'(在原生实现中其实与json相同)\n  - body(string): HTTP请求体.\n- callback(function): 响应结果回调，回调函数将收到如下的`response`对象：\n  - status(number)：返回的状态码.\n  - ok(boolean): 如果状态码在200~299之间就为真。\n  - statusText(string)：状态描述文本\n  - data: 返回的数据，如果请求类型是`json`和`jsonp`，则它就是一个 object ，如果不是，则它就是一个 string 。\n  - headers(object): 响应头\n- progressCallback(function): 关于请求状态的回调。 这个回调函数将在请求完成后就被调用:\n  - readyState(number): 当前状态 \n    state.'1':请求连接中\n    opened;'2':返回响应头中\n    received.;'3':正在加载返回数据\n  - status(number)：响应状态码.\n  - length(number): 已经接受到的数据长度. 你可以从响应头中获取总长度\n  - statusText(string)：状态文本\n  - headers(object): 响应头\n### 示例\n\n``` javascript\nstream.fetch({\n    method: 'GET',\n    url: \"http://httpbin.org/get\",\n    type:'json'\n}, function(response) {\n    //process response\n},function(response){\n    console.log(\"bytes received:\"+response.length);\n});\n```\n"},"comment":{"url":"https://api.github.com/repos/weexteam/article/issues/comments/258787269","html_url":"https://github.com/weexteam/article/issues/53#issuecomment-258787269","issue_url":"https://api.github.com/repos/weexteam/article/issues/53","id":258787269,"user":{"login":"jieshadow","id":11385188,"avatar_url":"https://avatars.githubusercontent.com/u/11385188?v=3","gravatar_id":"","url":"https://api.github.com/users/jieshadow","html_url":"https://github.com/jieshadow","followers_url":"https://api.github.com/users/jieshadow/followers","following_url":"https://api.github.com/users/jieshadow/following{/other_user}","gists_url":"https://api.github.com/users/jieshadow/gists{/gist_id}","starred_url":"https://api.github.com/users/jieshadow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jieshadow/subscriptions","organizations_url":"https://api.github.com/users/jieshadow/orgs","repos_url":"https://api.github.com/users/jieshadow/repos","events_url":"https://api.github.com/users/jieshadow/events{/privacy}","received_events_url":"https://api.github.com/users/jieshadow/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T09:34:21Z","updated_at":"2016-11-07T09:34:21Z","body":"我想问一下，按照这个列子写了 ，为啥返回的是【object，object】，不是json串"}}
{"actor":{"display_login":"jieshadow"}}