多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
jQuery slideToggle: ``` <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>jQuery slideToggle</title> <style> p { display: none; } </style> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("p").slideToggle(); }); }); </script> </head> <body> <button>點擊</button> <p>This is a paragraph.</p> </body> </html> ```