{"action":"opened","issue":{"url":"https://api.github.com/repos/fsjohnhuang/preview/issues/1","labels_url":"https://api.github.com/repos/fsjohnhuang/preview/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/fsjohnhuang/preview/issues/1/comments","events_url":"https://api.github.com/repos/fsjohnhuang/preview/issues/1/events","html_url":"https://github.com/fsjohnhuang/preview/issues/1","id":100202861,"number":1,"title":"一个关于URL的小问题","user":{"login":"AngusFu","id":8180186,"avatar_url":"https://avatars.githubusercontent.com/u/8180186?v=3","gravatar_id":"","url":"https://api.github.com/users/AngusFu","html_url":"https://github.com/AngusFu","followers_url":"https://api.github.com/users/AngusFu/followers","following_url":"https://api.github.com/users/AngusFu/following{/other_user}","gists_url":"https://api.github.com/users/AngusFu/gists{/gist_id}","starred_url":"https://api.github.com/users/AngusFu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AngusFu/subscriptions","organizations_url":"https://api.github.com/users/AngusFu/orgs","repos_url":"https://api.github.com/users/AngusFu/repos","events_url":"https://api.github.com/users/AngusFu/events{/privacy}","received_events_url":"https://api.github.com/users/AngusFu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-11T01:23:24Z","updated_at":"2015-08-11T01:23:24Z","closed_at":null,"body":"\tvar URL = (function(URL){\r\n\t\tif (!URL) return;\r\n\r\n\t\treturn {\r\n\t\t\tcreateObjectURL: function(blob){\r\n\t\t\t\treturn URL.createObjectURL(blob);\r\n\t\t\t},\t\r\n\t\t\trevokeObjectURL: function(url){\r\n\t\t\t\tURL.revokeObjectURL(url);\r\n\t\t\t}\r\n\t\t};\r\n\t}(window.webkitURL || window.URL));\r\n\r\n\r\n这里的兼容方法用(window.URL || window.webkitURL)更合适。\r\n\r\nchrome控制台提示：'webkitURL' is deprecated. Please use 'URL' instead.\r\n\r\n实际上也就是说，任何方法的兼容，最好是把标准的名称放在最前面。。。"}}