-4

当我尝试在我的网页上按引号键 (') 时,firefox仅打开默认的快速查找链接 ,但我不希望它出现在我的网页上。

4

1 回答 1

1

也许尝试:

$(document).on('keydown',function(e){
    if(e.which === 52 && !$(e.target).is(':input')) e.preventDefault();
});
于 2013-08-08T13:50:48.287 回答