{"action":"created","issue":{"url":"https://api.github.com/repos/drduan/minggeJS/issues/230","repository_url":"https://api.github.com/repos/drduan/minggeJS","labels_url":"https://api.github.com/repos/drduan/minggeJS/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/drduan/minggeJS/issues/230/comments","events_url":"https://api.github.com/repos/drduan/minggeJS/issues/230/events","html_url":"https://github.com/drduan/minggeJS/issues/230","id":142243186,"number":230,"title":"MingGeJs1.9.6.2016超强正式版, jsonp 设置超时时间无效, 接着打脸","user":{"login":"xqin","id":1265888,"avatar_url":"https://avatars.githubusercontent.com/u/1265888?v=3","gravatar_id":"","url":"https://api.github.com/users/xqin","html_url":"https://github.com/xqin","followers_url":"https://api.github.com/users/xqin/followers","following_url":"https://api.github.com/users/xqin/following{/other_user}","gists_url":"https://api.github.com/users/xqin/gists{/gist_id}","starred_url":"https://api.github.com/users/xqin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xqin/subscriptions","organizations_url":"https://api.github.com/users/xqin/orgs","repos_url":"https://api.github.com/users/xqin/repos","events_url":"https://api.github.com/users/xqin/events{/privacy}","received_events_url":"https://api.github.com/users/xqin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-21T03:14:15Z","updated_at":"2016-03-21T15:34:35Z","closed_at":null,"body":"指定的`jsonp`超时时间为 2 秒, 后端处理时间为5秒,在请求发出超过2秒之后,没有触发 `error`,\r\n而是在5秒钟的时候(即后端返回的时候)触发了 `success`.\r\n\r\n\r\n测试代码如下:\r\n\r\n```html\r\n<script src=\"MingGe_1.9.6.js\"></script>\r\n<script>\r\n\tconsole.log('load:', new Date());\r\n\t$.ajax({\r\n\t\tdataType: 'jsonp',\r\n\t\turl: 'http://127.0.0.1:8088/22.php?cb=?',\r\n\t\ttimeout: 2000,\r\n\t\terror: function(){\r\n\t\t\tconsole.log('error');\r\n\t\t},\r\n\t\tsuccess: function(v){\r\n\t\t\tconsole.log('succ:', new Date());\r\n\t\t}\r\n\t});\r\n\r\n</script>\r\n```\r\n\r\n```php\r\n<?php\r\n\r\nsleep(5);\r\n\r\necho $_GET['cb'], '(', time(), ')';\r\n```\r\n运行截图:\r\n![image](https://cloud.githubusercontent.com/assets/1265888/13909887/49e555b8-ef55-11e5-99a2-9ba10368b3d4.png)\r\n\r\n另外关于你的`艰难决定`, 是在为你的能力不足找借口吧?"},"comment":{"url":"https://api.github.com/repos/drduan/minggeJS/issues/comments/199342962","html_url":"https://github.com/drduan/minggeJS/issues/230#issuecomment-199342962","issue_url":"https://api.github.com/repos/drduan/minggeJS/issues/230","id":199342962,"user":{"login":"xqin","id":1265888,"avatar_url":"https://avatars.githubusercontent.com/u/1265888?v=3","gravatar_id":"","url":"https://api.github.com/users/xqin","html_url":"https://github.com/xqin","followers_url":"https://api.github.com/users/xqin/followers","following_url":"https://api.github.com/users/xqin/following{/other_user}","gists_url":"https://api.github.com/users/xqin/gists{/gist_id}","starred_url":"https://api.github.com/users/xqin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xqin/subscriptions","organizations_url":"https://api.github.com/users/xqin/orgs","repos_url":"https://api.github.com/users/xqin/repos","events_url":"https://api.github.com/users/xqin/events{/privacy}","received_events_url":"https://api.github.com/users/xqin/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T15:34:34Z","updated_at":"2016-03-21T15:34:34Z","body":"自己再去看看我以前给你提的issue, 里面有多少个和`JSON`/`jsonp` 关的bug.\r\n看你改了多少次了, 还一堆bug, 居然还不知道谦虚.\r\n\r\n原来做人还可以这么不要脸皮的啊.\r\n`new bee`吹这么大,脸红不?"}}