我想在Chrome中单击链接时添加一个书签。如何使用jQuery触发ctrl + d键?
$('.bookMark').click(function(){
var e = jQuery.Event( "keydown", { keyCode: 116 } );
jQuery("body").trigger( e );
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<a href="#" class="bookMark">add bookmark</a>