例 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.