{"action":"created","issue":{"url":"https://api.github.com/repos/joaner/namedavatar/issues/1","repository_url":"https://api.github.com/repos/joaner/namedavatar","labels_url":"https://api.github.com/repos/joaner/namedavatar/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/joaner/namedavatar/issues/1/comments","events_url":"https://api.github.com/repos/joaner/namedavatar/issues/1/events","html_url":"https://github.com/joaner/namedavatar/issues/1","id":381803843,"node_id":"MDU6SXNzdWUzODE4MDM4NDM=","number":1,"title":"请教小程序中如何使用？","user":{"login":"3xxx","id":10678867,"node_id":"MDQ6VXNlcjEwNjc4ODY3","avatar_url":"https://avatars2.githubusercontent.com/u/10678867?v=4","gravatar_id":"","url":"https://api.github.com/users/3xxx","html_url":"https://github.com/3xxx","followers_url":"https://api.github.com/users/3xxx/followers","following_url":"https://api.github.com/users/3xxx/following{/other_user}","gists_url":"https://api.github.com/users/3xxx/gists{/gist_id}","starred_url":"https://api.github.com/users/3xxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3xxx/subscriptions","organizations_url":"https://api.github.com/users/3xxx/orgs","repos_url":"https://api.github.com/users/3xxx/repos","events_url":"https://api.github.com/users/3xxx/events{/privacy}","received_events_url":"https://api.github.com/users/3xxx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-17T00:13:51Z","updated_at":"2018-11-17T11:32:20Z","closed_at":null,"author_association":"NONE","body":"您好，我在页面中可以使用。请教，如何在小程序里使用您这个方法呢？非常棒。谢谢。\r\n````\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<!-- <script type=\"text/javascript\" src=\"./dist/jquery-3.3.1.min.js\"></script> -->\r\n<script src=\"./dist/namedavatar.js\"></script>\r\n</head>\r\n<body>\r\n\r\n<!-- <img id=\"avatar1\" alt=\"供\" width=\"100\" > -->\r\n<img id=\"avatar1\" src=\"./invalid.jpg\" alt=\"Tom Hanks\" width=\"100\" style=\"border-radius: 100%\">\r\n\r\n<script>\r\nnamedavatar.config({\r\n  nameType: 'initials',\r\n  minFontSize:'20'\r\n});\r\n\r\n// fill single <img>\r\n(function(img) {\r\n  namedavatar.setImg(img, img.alt)\r\n})(document.getElementById('avatar1'))\r\n\r\n</script>\r\n\r\n</body>\r\n</html>\r\n```\r\n`"},"comment":{"url":"https://api.github.com/repos/joaner/namedavatar/issues/comments/439609963","html_url":"https://github.com/joaner/namedavatar/issues/1#issuecomment-439609963","issue_url":"https://api.github.com/repos/joaner/namedavatar/issues/1","id":439609963,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTYwOTk2Mw==","user":{"login":"3xxx","id":10678867,"node_id":"MDQ6VXNlcjEwNjc4ODY3","avatar_url":"https://avatars2.githubusercontent.com/u/10678867?v=4","gravatar_id":"","url":"https://api.github.com/users/3xxx","html_url":"https://github.com/3xxx","followers_url":"https://api.github.com/users/3xxx/followers","following_url":"https://api.github.com/users/3xxx/following{/other_user}","gists_url":"https://api.github.com/users/3xxx/gists{/gist_id}","starred_url":"https://api.github.com/users/3xxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3xxx/subscriptions","organizations_url":"https://api.github.com/users/3xxx/orgs","repos_url":"https://api.github.com/users/3xxx/repos","events_url":"https://api.github.com/users/3xxx/events{/privacy}","received_events_url":"https://api.github.com/users/3xxx/received_events","type":"User","site_admin":false},"created_at":"2018-11-17T11:32:20Z","updated_at":"2018-11-17T11:32:20Z","author_association":"NONE","body":"小程序中不支持dom，js中生成svg的代码，没办法了。"}}
{"actor":{"display_login":"3xxx"}}