JQuery右鍵菜單插件
阿新 • • 發佈:2018-04-07
query contex header con UNC action vid jquer als
// 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右鍵菜單插件