{"action":"created","issue":{"url":"https://api.github.com/repos/amfe/lib-flexible/issues/52","repository_url":"https://api.github.com/repos/amfe/lib-flexible","labels_url":"https://api.github.com/repos/amfe/lib-flexible/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/amfe/lib-flexible/issues/52/comments","events_url":"https://api.github.com/repos/amfe/lib-flexible/issues/52/events","html_url":"https://github.com/amfe/lib-flexible/issues/52","id":155883186,"number":52,"title":"菜鸟的一个代码疑惑","user":{"login":"Mrwei12345678","id":18391770,"avatar_url":"https://avatars.githubusercontent.com/u/18391770?v=3","gravatar_id":"","url":"https://api.github.com/users/Mrwei12345678","html_url":"https://github.com/Mrwei12345678","followers_url":"https://api.github.com/users/Mrwei12345678/followers","following_url":"https://api.github.com/users/Mrwei12345678/following{/other_user}","gists_url":"https://api.github.com/users/Mrwei12345678/gists{/gist_id}","starred_url":"https://api.github.com/users/Mrwei12345678/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mrwei12345678/subscriptions","organizations_url":"https://api.github.com/users/Mrwei12345678/orgs","repos_url":"https://api.github.com/users/Mrwei12345678/repos","events_url":"https://api.github.com/users/Mrwei12345678/events{/privacy}","received_events_url":"https://api.github.com/users/Mrwei12345678/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-20T04:06:04Z","updated_at":"2016-06-01T07:53:30Z","closed_at":null,"body":"window['lib']代表什么"},"comment":{"url":"https://api.github.com/repos/amfe/lib-flexible/issues/comments/222919261","html_url":"https://github.com/amfe/lib-flexible/issues/52#issuecomment-222919261","issue_url":"https://api.github.com/repos/amfe/lib-flexible/issues/52","id":222919261,"user":{"login":"yuchuanxi","id":5205912,"avatar_url":"https://avatars.githubusercontent.com/u/5205912?v=3","gravatar_id":"","url":"https://api.github.com/users/yuchuanxi","html_url":"https://github.com/yuchuanxi","followers_url":"https://api.github.com/users/yuchuanxi/followers","following_url":"https://api.github.com/users/yuchuanxi/following{/other_user}","gists_url":"https://api.github.com/users/yuchuanxi/gists{/gist_id}","starred_url":"https://api.github.com/users/yuchuanxi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuchuanxi/subscriptions","organizations_url":"https://api.github.com/users/yuchuanxi/orgs","repos_url":"https://api.github.com/users/yuchuanxi/repos","events_url":"https://api.github.com/users/yuchuanxi/events{/privacy}","received_events_url":"https://api.github.com/users/yuchuanxi/received_events","type":"User","site_admin":false},"created_at":"2016-06-01T07:53:30Z","updated_at":"2016-06-01T07:53:30Z","body":"@Mrwei12345678 避免重复定义\r\n`window['lib'] || (window['lib'] = {})`如果lib已经定义（window['lib']能获取到），就传这个`lib`\r\n如果没有定义就给`lib`赋值空对象，并传入`lib`\r\n\r\n这个时候在flexible.js里面的`lib`其实就已经是`window.lib`了（js中对象按引用传递）"}}
{"actor":{"display_login":"yuchuanxi"}}