Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置 SlideToggle() 默认隐藏?目标是在第一次加载页面时,我希望默认隐藏一个特定的,当用户单击按钮时将显示,当他再次单击时,它将再次隐藏。谢谢
<code> $('a').click(function() { $('div').toggle(function() { $(this).show(200); }); }); </code>