jQuery右键菜单示例·柯乐义

例 1

单个div的上下文菜单。 Note that the native context menu is disabled by passing {disable_native_context_menu: true} as the options hash and last argument of the plugin. The native context menu is enabled by default.

右击我

例 2 - 使用鼠标左键点击

You can use the same syntax, but use any other selector to target multiple elements with the same context menu. Notice the leftClick: true which indicates that it should trigger on left click instead of right click.

原文

例 3 - 突出当前点击项

You can use the showMenu and hideMenu options to highlight the current context menu target.

本插件的不足之处就是不支持jquery1.9以上版本。