Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何仅为第三列 td 设置触发器,而不是网格中的所有 td?我已经像这样设置了所有 td :
my.contextMenu({ trigger: '#Grid td ', rightButton: true, menu: '#testMenu', callback: ctxCallback });
试试这个:'#Grid tr>td:nth-child(3n)'
'#Grid tr>td:nth-child(3n)'
my.contextMenu({ trigger: '#Grid tr>td:nth-child(3n)', rightButton: true, menu: '#testMenu', callback: ctxCallback });