可能重複:
How to get the mouse position without events (without moving the mouse)?的JavaScript鼠標座標,而不事件
是否有可能獲得鼠標當前座標,沒有任何類型的事件?
只有Javascript!沒有jQuery ...
可能重複:
How to get the mouse position without events (without moving the mouse)?的JavaScript鼠標座標,而不事件
是否有可能獲得鼠標當前座標,沒有任何類型的事件?
只有Javascript!沒有jQuery ...
不,這樣的事情是不可能的,只有JavaScript和沒有事件。
這是不可能的,無論是與普通的JavaScript,也沒有jQuery的幫助。您至少需要一個mousemove
事件。
您可以在mouseMove事件中獲取它們,但不是沒有事件。 –
不行 - http://stackoverflow.com/questions/2601097/how-to-get-the-mouse-position-without-events-without-moving-the-mouse – Fluidbyte
@Fluidbyte:如果你發現一個重複的問題,你可以標記它,以便具有10k代表的用戶可以投票從10k工具頁面關閉。這使得關閉重複更快捷,更容易爲每個人。 :-) –