{"action":"created","issue":{"url":"https://api.github.com/repos/magicdawn/magicdawn/issues/35","labels_url":"https://api.github.com/repos/magicdawn/magicdawn/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/magicdawn/magicdawn/issues/35/comments","events_url":"https://api.github.com/repos/magicdawn/magicdawn/issues/35/events","html_url":"https://github.com/magicdawn/magicdawn/issues/35","id":99416975,"number":35,"title":"Bootstrap 相关","user":{"login":"magicdawn","id":4067115,"avatar_url":"https://avatars.githubusercontent.com/u/4067115?v=3","gravatar_id":"","url":"https://api.github.com/users/magicdawn","html_url":"https://github.com/magicdawn","followers_url":"https://api.github.com/users/magicdawn/followers","following_url":"https://api.github.com/users/magicdawn/following{/other_user}","gists_url":"https://api.github.com/users/magicdawn/gists{/gist_id}","starred_url":"https://api.github.com/users/magicdawn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicdawn/subscriptions","organizations_url":"https://api.github.com/users/magicdawn/orgs","repos_url":"https://api.github.com/users/magicdawn/repos","events_url":"https://api.github.com/users/magicdawn/events{/privacy}","received_events_url":"https://api.github.com/users/magicdawn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-06T11:41:01Z","updated_at":"2015-10-08T03:06:43Z","closed_at":null,"body":"All on Bootstrap."},"comment":{"url":"https://api.github.com/repos/magicdawn/magicdawn/issues/comments/146404691","html_url":"https://github.com/magicdawn/magicdawn/issues/35#issuecomment-146404691","issue_url":"https://api.github.com/repos/magicdawn/magicdawn/issues/35","id":146404691,"user":{"login":"magicdawn","id":4067115,"avatar_url":"https://avatars.githubusercontent.com/u/4067115?v=3","gravatar_id":"","url":"https://api.github.com/users/magicdawn","html_url":"https://github.com/magicdawn","followers_url":"https://api.github.com/users/magicdawn/followers","following_url":"https://api.github.com/users/magicdawn/following{/other_user}","gists_url":"https://api.github.com/users/magicdawn/gists{/gist_id}","starred_url":"https://api.github.com/users/magicdawn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magicdawn/subscriptions","organizations_url":"https://api.github.com/users/magicdawn/orgs","repos_url":"https://api.github.com/users/magicdawn/repos","events_url":"https://api.github.com/users/magicdawn/events{/privacy}","received_events_url":"https://api.github.com/users/magicdawn/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T03:06:43Z","updated_at":"2015-10-08T03:06:43Z","body":"## dropdown\r\nv3.3.5\r\nhttps://github.com/twbs/bootstrap/blob/master/js%2Fdropdown.js\r\n\r\n### actions\r\n动作, 对应js functions\r\n\r\n- clearMenus\r\n- Dropdown.prototype.toggle\r\n- Dropdown.prototype.keydown (key 操作暂时没看)\r\n\r\n1. element.on click.bs.dropdown -> toggle 点击自己去完成toggle 操作\r\n2. document.on click.bs.dropdown.data-api -> 在页面上的点击, 去 clearMenus\r\n3. document.on click.bs.dropdown.data-api '.dropdown-form' -> 在 .dropdown from 的点击, 取消冒泡\r\n4. document.on click.bs.dropdown.data-api '[data-toggle='dropdown']' 的点击去 toggle\r\n\r\n1 & 4 应该会冲突, 那么toggle 应该会取消冒泡... "}}