Commit e885d41f authored by hujun's avatar hujun

按回车键登陆后台

parent 186cd1a1
......@@ -7,6 +7,14 @@ $(function(){
$(this).parent().removeClass('input-area-active');
});
//回车按键
$(document).keypress(function(event){
var keynum = (event.keyCode ? event.keyCode : event.which);
if(keynum == '13'){
_loginBtn.click();
}
});
_loginBtn.click(function(e){
e.preventDefault();
e.stopPropagation();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment