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.
这与 Chrome 完美配合,但 IE8 没有触发此操作。我尝试了下面的代码。我在 chrome 中看到该消息,但 IE8 没有显示它,这让我认为它无法识别此方法:
$('#datasheetGrid').data('kendoGrid').tbody.on('mousedown',function(e){ if(e.altKey || event.button == 2){ alert(''); } });
而是将事件附加到基础元素。
$('#datasheetGrid').data('kendoGrid').element.on('mousedown',function(e) { if (e.altKey || e.button == 2){ alert('Clicked!'); } });