jQuery-contextMenu:jQuery contextMenu插件和polyfill

时间:2021-02-03 16:54:22
【文件属性】:
文件名称:jQuery-contextMenu:jQuery contextMenu插件和polyfill
文件大小:2.5MB
文件格式:ZIP
更新时间:2021-02-03 16:54:22
polyfill html jquery jquery-plugin html5 jQuery contextMenu插件和Polyfill $ .contextMenu是用于上下文菜单的管理工具(您猜对了)。 它是为可能显示上下文菜单的数百个元素的应用程序而设计的-因此初始化速度和内存使用都保持很小。 它还允许注册上下文菜单而无需提供实际的标记,因为$ .contextMenu会根据需要生成DOMElements。 -- 依存关系 jQuery> = 1.8.2 jQuery UI位置(可选,但推荐) 用法 从javascript注册contextMenu: $ . contextMenu ( { // define which elements trigger this menu selector : ".with-cool-menu" , // define the elements of the menu items : { foo : { name : "Foo" , callback : function ( key , opt ) { alert ( "Foo!" ) ; } } ,

网友评论