回答編集履歴
1
表記調整
answer
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
廃止されていない方の`.toggle()`は、`「.hide()`と`.show()`をまとめて、引数でどちらになるか指定できるようにしたもの」です([公式リファレンス](http://api.jquery.com/toggle/))。
|
2
2
|
|
3
|
-
イベントの`.toggle`は、以下の記述からも読み取れるように、もともと設計に無理があったようです。
|
3
|
+
イベントの`.toggle()`は、以下の記述からも読み取れるように、もともと設計に無理があったようです。
|
4
4
|
|
5
|
-
> It(注、`.toggle`メソッド) is relatively straightforward to implement the same behavior by hand, and this can be necessary if the assumptions built into `.toggle()` prove limiting. For example, `.toggle()` is not guaranteed to work correctly if applied twice to the same element. ([公式リファレンス](http://api.jquery.com/toggle-event/)より)
|
5
|
+
> It(注、`.toggle()`メソッド) is relatively straightforward to implement the same behavior by hand, and this can be necessary if the assumptions built into `.toggle()` prove limiting. For example, `.toggle()` is not guaranteed to work correctly if applied twice to the same element. ([公式リファレンス](http://api.jquery.com/toggle-event/)より)
|