首页 > Web开发 > 详细

JQuery右键菜单插件

时间:2018-04-07 17:08:41      阅读:198      评论:0      收藏:0      [点我收藏+]
// JQuery右键菜单插件
$(function () {
    context.init({preventDoubleContext: false});
    context.settings({compress: true});
    context.attach(‘#chat-view‘, [
        {header: ‘操作菜单‘,},
        {text: ‘清理‘, action: clearConsole},
        {divider: true},
        {
            text: ‘选项‘, subMenu: [
            {header: ‘连接选项‘},
            {text: ‘检查‘, action: checkConnection},
            {text: ‘连接‘, action: getConnection},
            {text: ‘断开‘, action: closeConnection}
        ]
        },
        {
            text: ‘销毁菜单‘, action: function (e) {
            e.preventDefault();
            context.destroy(‘#chat-view‘);
        }
        }
    ]);
});

  

JQuery右键菜单插件

原文:https://www.cnblogs.com/x54256/p/8733662.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!