{"action":"opened","issue":{"url":"https://api.github.com/repos/shiye515/blog/issues/2","repository_url":"https://api.github.com/repos/shiye515/blog","labels_url":"https://api.github.com/repos/shiye515/blog/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/shiye515/blog/issues/2/comments","events_url":"https://api.github.com/repos/shiye515/blog/issues/2/events","html_url":"https://github.com/shiye515/blog/issues/2","id":165005259,"number":2,"title":"在没有控制台的浏览器里定位js错误","user":{"login":"shiye515","id":3524716,"avatar_url":"https://avatars.githubusercontent.com/u/3524716?v=3","gravatar_id":"","url":"https://api.github.com/users/shiye515","html_url":"https://github.com/shiye515","followers_url":"https://api.github.com/users/shiye515/followers","following_url":"https://api.github.com/users/shiye515/following{/other_user}","gists_url":"https://api.github.com/users/shiye515/gists{/gist_id}","starred_url":"https://api.github.com/users/shiye515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiye515/subscriptions","organizations_url":"https://api.github.com/users/shiye515/orgs","repos_url":"https://api.github.com/users/shiye515/repos","events_url":"https://api.github.com/users/shiye515/events{/privacy}","received_events_url":"https://api.github.com/users/shiye515/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-12T06:44:07Z","updated_at":"2016-07-12T06:44:07Z","closed_at":null,"body":"可以引入各种 [console](https://www.npmjs.com/search?q=console)\r\n也可以直接把下面的代码放到<head>中的<script>标签里\r\n\r\n```javascript\r\nwindow.onerror = function(msg, url, lineNo, columnNo, error) {\r\n    alert([\r\n        msg,\r\n        'file: ' + url,\r\n        'lineNo: ' + lineNo,\r\n        'columnNo: ' + columnNo,\r\n        'error: ' + error\r\n    ].join('\\n'));\r\n};\r\n```"}}
{"actor":{"display_login":"shiye515"}}