{"action":"created","issue":{"url":"https://api.github.com/repos/why520crazy/angular-w5c-validator/issues/32","labels_url":"https://api.github.com/repos/why520crazy/angular-w5c-validator/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/why520crazy/angular-w5c-validator/issues/32/comments","events_url":"https://api.github.com/repos/why520crazy/angular-w5c-validator/issues/32/events","html_url":"https://github.com/why520crazy/angular-w5c-validator/issues/32","id":104399981,"number":32,"title":"input 后面的help-block 会被删除","user":{"login":"moxuanyuan","id":1165265,"avatar_url":"https://avatars.githubusercontent.com/u/1165265?v=3","gravatar_id":"","url":"https://api.github.com/users/moxuanyuan","html_url":"https://github.com/moxuanyuan","followers_url":"https://api.github.com/users/moxuanyuan/followers","following_url":"https://api.github.com/users/moxuanyuan/following{/other_user}","gists_url":"https://api.github.com/users/moxuanyuan/gists{/gist_id}","starred_url":"https://api.github.com/users/moxuanyuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moxuanyuan/subscriptions","organizations_url":"https://api.github.com/users/moxuanyuan/orgs","repos_url":"https://api.github.com/users/moxuanyuan/repos","events_url":"https://api.github.com/users/moxuanyuan/events{/privacy}","received_events_url":"https://api.github.com/users/moxuanyuan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/why520crazy/angular-w5c-validator/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"why520crazy","id":3959960,"avatar_url":"https://avatars.githubusercontent.com/u/3959960?v=3","gravatar_id":"","url":"https://api.github.com/users/why520crazy","html_url":"https://github.com/why520crazy","followers_url":"https://api.github.com/users/why520crazy/followers","following_url":"https://api.github.com/users/why520crazy/following{/other_user}","gists_url":"https://api.github.com/users/why520crazy/gists{/gist_id}","starred_url":"https://api.github.com/users/why520crazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/why520crazy/subscriptions","organizations_url":"https://api.github.com/users/why520crazy/orgs","repos_url":"https://api.github.com/users/why520crazy/repos","events_url":"https://api.github.com/users/why520crazy/events{/privacy}","received_events_url":"https://api.github.com/users/why520crazy/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-09-02T04:18:19Z","updated_at":"2015-09-18T06:20:30Z","closed_at":"2015-09-18T06:20:09Z","body":"input 后面要带help-block进行提示，但用了 w5cValidator.js 第63行中的 $elem.next(\".w5c-error\").remove(); 会把所有input 后面的help-block 删除\r\n\r\n原因是next() - Does not support selectors \r\n\r\nhttps://docs.angularjs.org/api/ng/function/angular.element\r\n\r\n解决方法将第62、63、64 行改为\r\n             var elemNext=$elem.next();\r\n                if(elemNext.hasClass('w5c-error')){\r\n                    angular.forEach(elemNext,function(e){\r\n                        e=angular.element(e);\r\n                        if(e.hasClass('w5c-error'))e.remove();\r\n                    });\r\n                }"},"comment":{"url":"https://api.github.com/repos/why520crazy/angular-w5c-validator/issues/comments/141355634","html_url":"https://github.com/why520crazy/angular-w5c-validator/issues/32#issuecomment-141355634","issue_url":"https://api.github.com/repos/why520crazy/angular-w5c-validator/issues/32","id":141355634,"user":{"login":"why520crazy","id":3959960,"avatar_url":"https://avatars.githubusercontent.com/u/3959960?v=3","gravatar_id":"","url":"https://api.github.com/users/why520crazy","html_url":"https://github.com/why520crazy","followers_url":"https://api.github.com/users/why520crazy/followers","following_url":"https://api.github.com/users/why520crazy/following{/other_user}","gists_url":"https://api.github.com/users/why520crazy/gists{/gist_id}","starred_url":"https://api.github.com/users/why520crazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/why520crazy/subscriptions","organizations_url":"https://api.github.com/users/why520crazy/orgs","repos_url":"https://api.github.com/users/why520crazy/repos","events_url":"https://api.github.com/users/why520crazy/events{/privacy}","received_events_url":"https://api.github.com/users/why520crazy/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T06:20:30Z","updated_at":"2015-09-18T06:20:30Z","body":"最新版本已经修复"}}