Why did jQuery remove .toggle() method? [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . .toggle( handler, handler [, handler ] ) I believe this API is very handy. But why jQuery 1.9 removed it? 回答1: It was deprecated in 1.8, as per ticket # 11786. It was later removed in 1.9. Basically, that ticket contains the real reasons, such as: The .toggle() method is provided for convenience. It is