created:function(){
//登录添加键盘事件,注意,不能直接在焦点事件上添加回车
let that = this;
document.onkeydown = function (e) {
let key = window.event.keyCode;
if (key === 13){
that.handleSubmit2();//方法
}
}
},
回车事件触发
猜你喜欢
转载自blog.csdn.net/weixin_43837268/article/details/85060237
今日推荐
周排行