{"action":"created","issue":{"url":"https://api.github.com/repos/nimojs/nodeajax/issues/8","labels_url":"https://api.github.com/repos/nimojs/nodeajax/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/nimojs/nodeajax/issues/8/comments","events_url":"https://api.github.com/repos/nimojs/nodeajax/issues/8/events","html_url":"https://github.com/nimojs/nodeajax/issues/8","id":77470978,"number":8,"title":"实现 res 配合 req.cookies._.value","user":{"login":"nimojs","id":3949015,"avatar_url":"https://avatars.githubusercontent.com/u/3949015?v=3","gravatar_id":"","url":"https://api.github.com/users/nimojs","html_url":"https://github.com/nimojs","followers_url":"https://api.github.com/users/nimojs/followers","following_url":"https://api.github.com/users/nimojs/following{/other_user}","gists_url":"https://api.github.com/users/nimojs/gists{/gist_id}","starred_url":"https://api.github.com/users/nimojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimojs/subscriptions","organizations_url":"https://api.github.com/users/nimojs/orgs","repos_url":"https://api.github.com/users/nimojs/repos","events_url":"https://api.github.com/users/nimojs/events{/privacy}","received_events_url":"https://api.github.com/users/nimojs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nimojs","id":3949015,"avatar_url":"https://avatars.githubusercontent.com/u/3949015?v=3","gravatar_id":"","url":"https://api.github.com/users/nimojs","html_url":"https://github.com/nimojs","followers_url":"https://api.github.com/users/nimojs/followers","following_url":"https://api.github.com/users/nimojs/following{/other_user}","gists_url":"https://api.github.com/users/nimojs/gists{/gist_id}","starred_url":"https://api.github.com/users/nimojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimojs/subscriptions","organizations_url":"https://api.github.com/users/nimojs/orgs","repos_url":"https://api.github.com/users/nimojs/repos","events_url":"https://api.github.com/users/nimojs/events{/privacy}","received_events_url":"https://api.github.com/users/nimojs/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-05-18T02:49:31Z","updated_at":"2015-05-24T16:32:39Z","closed_at":null,"body":"```js\r\n$('/ajax/', {\r\n    success: function () {\r\n\r\n    },\r\n    error: function () {\r\n\r\n    },\r\n    res: {\r\n        'wait': function () {\r\n                    return \"ok\"\r\n        },\r\n        'done': function () {\r\n                    return \"error\"\r\n        }\r\n    }\r\n})\r\n```\r\n\r\n替代\r\n\r\n```js\r\n if (req.cookies._.value === 'wait') {\r\n        return \"ok\"\r\n    } else if  (req.cookies._.value === 'done'){\r\n        return \"error\"\r\n    }\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nimojs/nodeajax/issues/comments/105033943","html_url":"https://github.com/nimojs/nodeajax/issues/8#issuecomment-105033943","issue_url":"https://api.github.com/repos/nimojs/nodeajax/issues/8","id":105033943,"user":{"login":"nimojs","id":3949015,"avatar_url":"https://avatars.githubusercontent.com/u/3949015?v=3","gravatar_id":"","url":"https://api.github.com/users/nimojs","html_url":"https://github.com/nimojs","followers_url":"https://api.github.com/users/nimojs/followers","following_url":"https://api.github.com/users/nimojs/following{/other_user}","gists_url":"https://api.github.com/users/nimojs/gists{/gist_id}","starred_url":"https://api.github.com/users/nimojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimojs/subscriptions","organizations_url":"https://api.github.com/users/nimojs/orgs","repos_url":"https://api.github.com/users/nimojs/repos","events_url":"https://api.github.com/users/nimojs/events{/privacy}","received_events_url":"https://api.github.com/users/nimojs/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T16:32:39Z","updated_at":"2015-05-24T16:32:39Z","body":"需要完善 res 在 `$.config.ajaxSettings.doc` 中的添加\r\n\r\n给 res实现类似 `.done` 替代 `success` 的语法"}}