jQuery如何进行右键识别?

How to do right click recognition with jQuery?

$("div").on("rightclick", function() {
    alert("Right Click pressed");
});

如何识别是否按下了右键?

$("div").contextmenu(function() {
    alert("Right click pressed");
});