teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

公式ドキュメント追加

2021/03/19 07:04

投稿

int32_t
int32_t

スコア21929

answer CHANGED
@@ -3,4 +3,6 @@
3
3
  いいえ。マウスオーバーが始まるときと終わるときの両方で呼ばれます。
4
4
 
5
5
  質問者さんが想定した動作は `hover(function() {...}, null)`
6
- や `mouseenter(function() {...})` です。
6
+ や `mouseenter(function() {...})` です。
7
+
8
+ [公式の hover のドキュメント](https://api.jquery.com/hover/)には引数について「A function to execute when the mouse pointer enters or leaves the element.」と書かれています。