Web 应用菜单 nuContextMenu

码农软件 · 软件分类 · jQuery菜单 · 2019-12-21 10:57:28

软件介绍

nuContextMenu 是用在 Web 应用上,对字体有完美支持的内容菜单。它只有 2.2 KB 大小,它将菜单视为主要对象,这就意味着单个菜单可以附着多个元素。

示例代码:

$(function() {
    var context = $('#node').nuContextMenu({

        // Omit items if you are attaching to a single container
        items: '.item',

        callback: function(key, element) {
            alert('Clicked ' + key + ' on ' + $(element).attr('id'));
        },

        // Define menu items here
        // key: {...}
        menu: {

            'archive': {
                title: 'Archive',
                // Font awesome icons here
                icon: 'archive',
            },

            'mark': {
                title: 'Mark as read',
                icon: 'check',
            },

            // If the value is 'separator' then an 
            // <hr> node is added
            'void': 'separator',

            'delete': {
                title: 'Delete',
                icon: 'trash',
            },
        }
    });

    // Disable context menu
    // context.nuContextMenu('disable');

});

本文地址:https://codercto.com/soft/d/21624.html

Head First HTML与CSS(第2版)

Head First HTML与CSS(第2版)

Elisabeth Robson、Eric Freeman / 徐阳、丁小峰 / 中国电力出版社 / 2013-9 / 98.00元

是不是已经厌倦了那些深奥的HTML书?你可能在抱怨,只有成为专家之后才能读懂那些书。那么,找一本新修订的《Head First HTML与CSS(第2版)》吧,来真正学习HTML。你可能希望学会HTML和CSS来创建你想要的Web页面,从而能与朋友、家人、粉丝和狂热的顾客更有效地交流。你还希望使用最新的HTML5标准,能够保证随时间维护和扩展你的Web页面,使它们在所有浏览器和移动设备中都能正常工......一起来看看 《Head First HTML与CSS(第2版)》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试