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.
在 FullCalendar 中,如何在 eventClick 回调中获取鼠标单击 (x,y) 的位置?
eventClick: function(calEvent, jsEvent, view) { alert(jsEvent.pageX); //X coordinate alert(jsEvent.pageY); //Y coordinate }
希望有帮助!
public void eventClick(Event e){ int x,y; x = e.getX(); y = e.getY(); }
这是假设您使用 java.util.