created() {
let that =this;
document.onkeypress = function(e) {
varkeycode = document.all ?event.keyCode : e.which;
if(keycode ==13) {
that.login();// 登录方法名
returnfalse;
}
};
}
created() {
let that =this;
document.onkeypress = function(e) {
varkeycode = document.all ?event.keyCode : e.which;
if(keycode ==13) {
that.login();// 登录方法名
returnfalse;
}
};
}
本文标题:vue 回车键登陆
本文链接:https://www.haomeiwen.com/subject/quhmhhtx.html
网友评论