{"action":"created","issue":{"url":"https://api.github.com/repos/eleme/banshee/issues/180","labels_url":"https://api.github.com/repos/eleme/banshee/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/eleme/banshee/issues/180/comments","events_url":"https://api.github.com/repos/eleme/banshee/issues/180/events","html_url":"https://github.com/eleme/banshee/issues/180","id":126087395,"number":180,"title":"创建项目的dialog按enter键不提交","user":{"login":"hit9","id":1687443,"avatar_url":"https://avatars.githubusercontent.com/u/1687443?v=3","gravatar_id":"","url":"https://api.github.com/users/hit9","html_url":"https://github.com/hit9","followers_url":"https://api.github.com/users/hit9/followers","following_url":"https://api.github.com/users/hit9/following{/other_user}","gists_url":"https://api.github.com/users/hit9/gists{/gist_id}","starred_url":"https://api.github.com/users/hit9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hit9/subscriptions","organizations_url":"https://api.github.com/users/hit9/orgs","repos_url":"https://api.github.com/users/hit9/repos","events_url":"https://api.github.com/users/hit9/events{/privacy}","received_events_url":"https://api.github.com/users/hit9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-12T03:10:32Z","updated_at":"2016-01-12T05:04:50Z","closed_at":null,"body":"input和两个button未在一个表单中，所以我刚才尝试加type=\"submit\" 也没用。。。\r\n\r\n我想的办法是：搞到表单里，js拦截表单的submit事件，perventDefault，然后再post json. 这样type=submit也是可以用的"},"comment":{"url":"https://api.github.com/repos/eleme/banshee/issues/comments/170792248","html_url":"https://github.com/eleme/banshee/issues/180#issuecomment-170792248","issue_url":"https://api.github.com/repos/eleme/banshee/issues/180","id":170792248,"user":{"login":"facesea","id":11919175,"avatar_url":"https://avatars.githubusercontent.com/u/11919175?v=3","gravatar_id":"","url":"https://api.github.com/users/facesea","html_url":"https://github.com/facesea","followers_url":"https://api.github.com/users/facesea/followers","following_url":"https://api.github.com/users/facesea/following{/other_user}","gists_url":"https://api.github.com/users/facesea/gists{/gist_id}","starred_url":"https://api.github.com/users/facesea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facesea/subscriptions","organizations_url":"https://api.github.com/users/facesea/orgs","repos_url":"https://api.github.com/users/facesea/repos","events_url":"https://api.github.com/users/facesea/events{/privacy}","received_events_url":"https://api.github.com/users/facesea/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T05:04:50Z","updated_at":"2016-01-12T05:04:50Z","body":"这个UI框架下的dialog没办法整体嵌入到form表单里去，所以submit button难以用进去，dialog内部倒是好嵌一个form。"}}