mounted (){
// 键盘监听
let _this = this;
document.onkeydown = function(e) {
let key = window.event.keyCode;
if (key== 13) {
_this.audioOn(!_this.clickShow);
}
};
},
VUE键盘监听 可复用
Supongo que te gusta
Origin blog.csdn.net/Beatingworldline/article/details/121247521
Recomendado
Clasificación