jQuery的Toggle事件功能已作为1.9版的一部分删除.
我正在使用这个函数:
$('#example').toggle(function() { do stuff }, function() { do stuff });
现在Toggle Event已经消失了,重现此功能的最佳方法是什么?
jquery toggle
jquery ×1
toggle ×1