ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
jQuery点击显示和隐藏CSS ``` <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#but").click(function(){ if($(".exPara").css("display")=="none"){ $(".exPara").show(); }else{ $(".exPara").hide(); } }); }); </script> </head> <body> <button id="but" type="button">Click Me!</button> <div class="exPara" style="display:none"> 22222222 </div> </body> </html> ```