码迷,mamicode.com
首页 > Web开发 > 详细

JQuery右键菜单插件

时间:2018-04-07 17:49:53      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:cti   setting   res   contex   class   tde   header   func   post   

// 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右键菜单插件

标签:cti   setting   res   contex   class   tde   header   func   post   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!