jq
let event = JQuery.event('keydown');
event.keyCode = 13;
$("input.pagination-num").trigger(e);//模拟页码框按下回车
js:
window.document.onkeydown = function(e){
var isE = e || event;
if(isE.keyCode == 46){
return false;
}
}
jq
let event = JQuery.event('keydown');
event.keyCode = 13;
$("input.pagination-num").trigger(e);//模拟页码框按下回车
js:
window.document.onkeydown = function(e){
var isE = e || event;
if(isE.keyCode == 46){
return false;
}
}
转载于:https://www.cnblogs.com/tutao1995/p/11040088.html