let aa=this
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key === 8) {
console.log(1)
aa.$router.go(-1)
}
};
let aa=this
document.onkeydown = function (e) {
var key = window.event.keyCode;
if (key === 8) {
console.log(1)
aa.$router.go(-1)
}
};
本文标题:vue中处理键盘后退事件
本文链接:https://www.haomeiwen.com/subject/meszactx.html
网友评论