mounted (){
// 键盘监听
let _this = this;
document.onkeydown = function(e) {
let key = window.event.keyCode;
if (key== 13) {
_this.audioOn(!_this.clickShow);
}
};
},
VUE键盘监听 可复用
猜你喜欢
转载自blog.csdn.net/Beatingworldline/article/details/121247521
今日推荐
周排行