{"action":"closed","issue":{"url":"https://api.github.com/repos/zhex/fe-dev-server/issues/2","repository_url":"https://api.github.com/repos/zhex/fe-dev-server","labels_url":"https://api.github.com/repos/zhex/fe-dev-server/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/zhex/fe-dev-server/issues/2/comments","events_url":"https://api.github.com/repos/zhex/fe-dev-server/issues/2/events","html_url":"https://github.com/zhex/fe-dev-server/issues/2","id":142042870,"number":2,"title":"发送AJAX请求时如果使用POST则data.query值为null","user":{"login":"zenoven","id":1305982,"avatar_url":"https://avatars.githubusercontent.com/u/1305982?v=3","gravatar_id":"","url":"https://api.github.com/users/zenoven","html_url":"https://github.com/zenoven","followers_url":"https://api.github.com/users/zenoven/followers","following_url":"https://api.github.com/users/zenoven/following{/other_user}","gists_url":"https://api.github.com/users/zenoven/gists{/gist_id}","starred_url":"https://api.github.com/users/zenoven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenoven/subscriptions","organizations_url":"https://api.github.com/users/zenoven/orgs","repos_url":"https://api.github.com/users/zenoven/repos","events_url":"https://api.github.com/users/zenoven/events{/privacy}","received_events_url":"https://api.github.com/users/zenoven/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-19T08:20:46Z","updated_at":"2016-03-19T14:14:25Z","closed_at":"2016-03-19T14:14:25Z","body":"routes.js\r\n```js\r\nmodule.exports = {\r\n    'post::/test.action': 'mock::api/test.js'\r\n}\r\n```\r\n\r\napi/test.js\r\n```js\r\nmodule.exports = function(data, utils) {\r\n   \r\n    var result = {\r\n        success: {\r\n            code: 0,  \r\n            pageNumber: parseInt(data.query.pageNumber)   // 使用post时值为null，get则无此问题\r\n        },\r\n        error: {\r\n            code: 1,\r\n            msg: \"error blabla...\"\r\n        }\r\n    }\r\n\r\n    return result.success;\r\n    return result.error;\r\n}\r\n```"}}