grid.addListener('rowcontextmenu', rightClickFn);//右键菜单代码关键部分var rightClick = new Ext.menu.Menu({id:'rightClickCont', //在HTML文件中必须有个rightClickCont的DIV元素items: [{id: 'rMenu1',handler: rMenu1Fn,//点击后触发的事件text: '右键菜单1'},{//id: 'rMenu2',//handler: rMenu2Fn,text: & Read More